fix scanning after socketio upgrade

This commit is contained in:
Georges-Antoine Assi
2024-03-18 09:47:15 -04:00
parent be553d5524
commit f259e1b1d0
2 changed files with 6 additions and 5 deletions

View File

@@ -12,4 +12,4 @@ class SocketHandler:
client_manager=socketio.AsyncRedisManager(redis_url),
)
self.socket_app = socketio.ASGIApp(self.socket_server)
self.socket_app = socketio.ASGIApp(self.socket_server, socketio_path="/ws/socket.io")

View File

@@ -101,17 +101,18 @@ watchdog_process_pid () {
fi
}
# Update the user and group IDs as per environment variables
# Update the user/group IDs per environment variables
if [ ! -z "$PUID" ] && [ "$PUID" != "$(id -u romm)" ]; then
usermod -o -u "$PUID" romm
fi
if [ ! -z "$PGID" ] && [ "$PGID" != "$(id -g romm)" ]; then
groupmod -o -g "$PGID" romm
fi
umask "$UMASK"
if [ ! -z "$UMASK" ] && [ "$UMASK" != "$(umask)" ]; then
umask "$UMASK"
fi
echo "Setting permissions and ownership for necessary directories..."
echo "Setting permissions and ownership for required directories..."
chown -R romm:romm /romm /redis-data /backend
chmod -R 755 /romm /redis-data /backend