diff options
author | Christian Pointner <equinox@spreadspace.org> | 2016-01-30 22:52:26 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2016-01-30 22:52:26 +0100 |
commit | f409ce18e8d56ec30e842059c2c74a0d49907ab9 (patch) | |
tree | d17b2536e585cb86d4414c239da4828ba7951745 /saswall | |
parent | updated debian changelog (diff) |
fixed systemd reload and initscript path
Diffstat (limited to 'saswall')
-rwxr-xr-x | saswall | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -109,7 +109,11 @@ saswall_restore() saswall_check_or_fallback() { set +e - read -t $SASWALL_CONFIRM_TIMEOUT -p "To confirm changes type yes [ENTER]: " saswall_confirmation + if [ -z "$SASWALL_USE_SYSTEM_ASK_PASSWD" ]; then + read -t $SASWALL_CONFIRM_TIMEOUT -p "To confirm changes type yes [ENTER]: " saswall_confirmation + else + saswall_confirmation=`systemd-ask-password --timeout=$SASWALL_CONFIRM_TIMEOUT "To confirm saswall changes type yes [ENTER]: "` + fi if [ "$saswall_confirmation" != "yes" ]; then echo "no or wrong confirmation received" saswall_restore |