Fix issue with "sudo" tasks returning 1 exit codes.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-06-28 06:21:58 -05:00
parent 115d8b5f5a
commit 3e8f90151f
No known key found for this signature in database
GPG key ID: 6D9E12FF03411F4E
4 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
if [ `whoami` != 'azuracast' ]; then
echo 'This script must be run as the "azuracast" user. Rerunning...'
setuser azuracast azuracast_cli "$@"
exit 1
exit $?
fi
cd /var/azuracast/www

View file

@ -10,7 +10,7 @@ bool() {
if [ $(whoami) != 'azuracast' ]; then
echo 'This script must be run as the "azuracast" user. Rerunning...'
setuser azuracast azuracast_install "$@"
exit 1
exit $?
fi
echo "AzuraCast Setup"

View file

@ -10,7 +10,7 @@ bool() {
if [ $(whoami) != 'azuracast' ]; then
echo 'This script must be run as the "azuracast" user. Rerunning...'
setuser azuracast azuracast_install "$@"
exit 1
exit $?
fi
echo "AzuraCast Setup"

View file

@ -2,4 +2,4 @@
set -ex
azuracast_cli azuracast:setup:initialize
setuser azuracast azuracast_cli azuracast:setup:initialize