Using sudo when upgrading.

This commit is contained in:
Roland 2023-11-22 10:40:56 -07:00
parent 94a2c50531
commit 00579759cc
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -34,6 +34,12 @@ if [ ! -d /opt/wrolpi ] || [ ! -d /opt/wrolpi/wrolpi ]; then
exit 2
fi
# Re-execute this script if it wasn't called with sudo.
if [ $EUID != 0 ]; then
sudo "$0" "$@"
exit $?
fi
set -x
set -e