diff options
author | Christian Rößler | 2015-11-17 17:05:56 +0100 |
---|---|---|
committer | Christian Rößler | 2015-11-17 17:05:56 +0100 |
commit | 7e76df9468a475ea47f7a494b1ec817178cd1fa0 (patch) | |
tree | bbaba7070e02efb4084d8f72ab48ffb72ee80103 /satellit_installer/includes/00-perror.inc | |
parent | [SSPS] Base atftpd systemd service file (ExecStart etc. should be edited furt... (diff) | |
download | setup-scripts-7e76df9468a475ea47f7a494b1ec817178cd1fa0.tar.gz setup-scripts-7e76df9468a475ea47f7a494b1ec817178cd1fa0.tar.xz setup-scripts-7e76df9468a475ea47f7a494b1ec817178cd1fa0.zip |
[SSPS] Password change enforced and repeated (firstrun), some cosmetics etc.
Diffstat (limited to 'satellit_installer/includes/00-perror.inc')
-rw-r--r-- | satellit_installer/includes/00-perror.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/satellit_installer/includes/00-perror.inc b/satellit_installer/includes/00-perror.inc index eed3d1c..8fa82a8 100644 --- a/satellit_installer/includes/00-perror.inc +++ b/satellit_installer/includes/00-perror.inc @@ -1,9 +1,13 @@ declare -rg MYPID=$$ -perror () { +perror() { echo "[ERROR] *" "$@" [ "$$" != "$MYPID" ] && kill "$MYPID" exit 1 } +pwarning() { + echo "[WARNING] *" "$@" +} + |