summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordian Edenhofer2017-11-11 13:03:58 +0100
committerGordian Edenhofer2017-11-11 13:03:58 +0100
commitafde12fff84a97d81c4e32ff77d52825ee51e38f (patch)
tree8924a4d306bf5ce01a2eecda1fbbab587a7bdc90
parent9c8f44b000dc8b559e4599b7a9bd76f6a7a117ec (diff)
downloadaur-afde12fff84a97d81c4e32ff77d52825ee51e38f.tar.gz
*.install: Instead of fancy `msg` use plain `echo`
Instead of relying on makepkg's built-in `msg` function simply use `echo` without any coloring or similar beatifications.
-rw-r--r--slurm-llnl-dev.install22
1 files changed, 11 insertions, 11 deletions
diff --git a/slurm-llnl-dev.install b/slurm-llnl-dev.install
index 6ccc367a37c..98f9615e03e 100644
--- a/slurm-llnl-dev.install
+++ b/slurm-llnl-dev.install
@@ -1,12 +1,12 @@
post_install() {
if ! id slurm >&/dev/null; then
- msg "Adding slurm system group..."
+ echo "Adding slurm system group..."
groupadd -g 64030 -r slurm || groupadd -r slurm
- msg "Adding slurm system user..."
+ echo "Adding slurm system user..."
useradd -r -c "Slurm Daemon" -d /var/log/slurm-llnl -g slurm -u 64030 slurm || useradd -r -c "Slurm Daemon" -d /var/log/slurm-llnl -g slurm slurm
- msg "Locking Slurm User Account..."
+ echo "Locking Slurm User Account..."
passwd -l slurm &>/dev/null
fi
@@ -15,7 +15,7 @@ post_install() {
chown -R slurm:slurm /var/log/slurm-llnl
fi
- msg "You have to create a slurm configuration-file in /etc/slurm-llnl/ prior to starting any slurm daemons."
+ echo "You have to create a slurm configuration-file in /etc/slurm-llnl/ prior to starting any slurm daemons."
}
post_upgrade() {
@@ -23,23 +23,23 @@ post_upgrade() {
if [[ -f /etc/slurm/slurm.conf ]]; then
mv /etc/slurm/* /etc/slurm-llnl/
rmdir /etc/slurm
- msg "Your configuration-files were moved from /etc/slurm to /etc/slurm-llnl !"
+ echo "Your configuration-files were moved from /etc/slurm to /etc/slurm-llnl !"
fi
}
pre_remove() {
if which systemctl >& /dev/null; then
- msg "Stopping slurm daemons through SystemD..."
+ echo "Stopping slurm daemons through SystemD..."
systemctl stop slurmd.service
systemctl stop slurmdbd.service
systemctl stop slurmctld.service
- msg "Disabling SystemD related file(s)..."
+ echo "Disabling SystemD related file(s)..."
systemctl disable slurmd.service
systemctl disable slurmdbd.service
systemctl disable slurmctld.service
else
- msg "Stopping slurm daemons..."
+ echo "Stopping slurm daemons..."
/etc/rc.d/slurm stop
/etc/rc.d/slurmdbd stop
fi
@@ -52,9 +52,9 @@ post_remove() {
# Change directories which formerly belonged to slurm to be owned by root
[[ -d /var/spool/slurm ]] && chown -R root:root /var/spool/slurm
# Notify the user of kept dirs
- [[ -d /etc/slurm-llnl ]] && msg "Custom configuration-file(s) in /etc/slurm-llnl/ were kept on your system."
- [[ -d /var/log/slurm-llnl ]] && chown -R root:root /var/log/slurm-llnl && msg "Logfiles were preserved. They reside under /var/log/slurm-llnl ."
+ [[ -d /etc/slurm-llnl ]] && echo "Custom configuration-file(s) in /etc/slurm-llnl/ were kept on your system."
+ [[ -d /var/log/slurm-llnl ]] && chown -R root:root /var/log/slurm-llnl && echo "Logfiles were preserved. They reside under /var/log/slurm-llnl ."
- msg "Removing slurm system user/group..."
+ echo "Removing slurm system user/group..."
userdel slurm
}