diff options
Diffstat (limited to 'slurm-llnl-dev.install')
-rw-r--r-- | slurm-llnl-dev.install | 6 |
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" } |