Update entrypoint.sh

This commit is contained in:
Stefan Pejcic 2024-08-07 14:58:47 +02:00 committed by GitHub
parent 3bc26f615d
commit c60e40474b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -126,6 +126,14 @@ else
fi
# pm2
if [ -s /root/.pm2/dump.pm2 ]; then
echo "There are saved NodeJS/Python applications, starting them.."
pm2 resurrect
else
echo "No saved NodeJS/Python applications to run. Skipping 'pm2 resurrect'."
fi
# sudo
if grep -q 'SUDO="YES"' /etc/entrypoint.sh; then
usermod -aG sudo -u 1000 $(getent passwd 1000 | cut -d: -f1)