summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordian Edenhofer2016-02-06 17:45:49 +0100
committerGordian Edenhofer2016-02-06 17:45:49 +0100
commit76e9dad986a2c73a560b95b1dab7515c6959231f (patch)
tree7fa5f3f401d5ad1af0736f3ff1f009ac37a88eef
parent042b3c9803d5d74dd323a64fdf606b75d19843f8 (diff)
downloadaur-76e9dad986a2c73a560b95b1dab7515c6959231f.tar.gz
Upgpkg: 26981.fc4db49-1
On post-remove make dirs formerly belonging to the slurm user be picked up by root.
-rw-r--r--slurm-llnl-git.install6
1 files changed, 4 insertions, 2 deletions
diff --git a/slurm-llnl-git.install b/slurm-llnl-git.install
index e414635d98d9..17a84b71daf6 100644
--- a/slurm-llnl-git.install
+++ b/slurm-llnl-git.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"
}