summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordian Edenhofer2016-02-06 17:44:58 +0100
committerGordian Edenhofer2016-02-06 17:44:58 +0100
commit6041b81ce515abe90e0b6c2997e568b3f603d502 (patch)
treee323237a0f3a874557b062b1916600c13d7e65ef
parenta43a43dbce2af46544366b4acf6add372316e2cb (diff)
downloadaur-6041b81ce515abe90e0b6c2997e568b3f603d502.tar.gz
Upgpkg: 15.08.7-1
On post-remove make dirs formerly belonging to the slurm user be picked up by root.
-rw-r--r--slurm-llnl-dev.install6
1 files changed, 4 insertions, 2 deletions
diff --git a/slurm-llnl-dev.install b/slurm-llnl-dev.install
index e414635d98d9..17a84b71daf6 100644
--- a/slurm-llnl-dev.install
+++ b/slurm-llnl-dev.install
@@ -67,7 +67,9 @@ post_remove() {
# deleting remnant recusivly
rm -rf /var/lib/slurm-llnl
+ # Change directories which formerly belonged to slurm to be owned by root
+ [[ -d /var/spool/slurm ]] && chown -R root:root /var/spool/slurm
# notifying the user of kept dirs
- [ -d /etc/slurm-llnl ] && echo -e "\e[34;1m==>\e[39;1m NOTE: Custom configuration-file(s) in /etc/slurm-llnl/ were kept on your system.\e[0m"
- [ -d /var/log/slurm-llnl ] && echo -e "\e[34;1m==>\e[39;1m NOTE: Logfiles were preserved. They reside under /var/log/slurm-llnl .\e[0m"
+ [[ -d /etc/slurm-llnl ]] && echo -e "\e[34;1m==>\e[39;1m NOTE: Custom configuration-file(s) in /etc/slurm-llnl/ were kept on your system.\e[0m"
+ [[ -d /var/log/slurm-llnl ]] && chown -R root:root /var/log/slurm-llnl && echo -e "\e[34;1m==>\e[39;1m NOTE: Logfiles were preserved. They reside under /var/log/slurm-llnl .\e[0m"
}