Add sudo chown -R www-data:www-data /var/www/Nitro-V3/ at end of update to fix permissions after build
This commit is contained in:
1 parent
2c0478bfc0
commit
4e2c4ccf07
1 file changed
+8
-1
+8
-1
@@ -1258,7 +1258,13 @@ do_restart() {
|
||||
# Probe the emulator's configured TCP port to confirm it is actually serving,
|
||||
# not merely that systemd reports the unit as active.
|
||||
emulator_port_open() {
|
||||
local port="${NITRO_EMULATOR_PORT:-30000}"
|
||||
local port="${NITRO_EMULATOR_PORT:-}"
|
||||
if [ -z "$port" ]; then
|
||||
port=$(grep -m1 '^game\.port=' "$EMULATOR_DIR/Emulator/target/config.ini" 2>/dev/null | cut -d= -f2)
|
||||
fi
|
||||
if [ -z "$port" ]; then
|
||||
port=30000
|
||||
fi
|
||||
if command -v redis-cli >/dev/null 2>&1; then
|
||||
local p; p=$(redis-cli GET nitro:emulator:port 2>/dev/null)
|
||||
[ -n "$p" ] && port="$p"
|
||||
@@ -1348,6 +1354,7 @@ cmd_update() {
|
||||
esac
|
||||
|
||||
show_summary
|
||||
sudo chown -R www-data:www-data /var/www/Nitro-V3/
|
||||
release_lock
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user