mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update entrypoint.sh
This commit is contained in:
parent
3bc26f615d
commit
c60e40474b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user