fix: update deployment scripts and resolve backend API communication issue
This commit is contained in:
1 parent
ae023525ec
commit
441560a910
14 files changed
+61
-66
No files matched your search
@@ -7,7 +7,7 @@ if [ "$(id -u)" != "0" ]; then
|
||||
exec python /app/src/run.py
|
||||
fi
|
||||
|
||||
# Create data directory with correct permissions for the StrixWebSSH user
|
||||
# Create data directory with correct permissions for the WebSSH user
|
||||
if [ ! -d "/data" ]; then
|
||||
echo "Creating /data directory..."
|
||||
mkdir -p /data
|
||||
@@ -17,14 +17,14 @@ echo "Current /data permissions:"
|
||||
ls -la /data || true
|
||||
ls -la / | grep data || true
|
||||
|
||||
# Ensure /data is writable and owned by the StrixWebSSH user (UID 999)
|
||||
# Ensure /data is writable and owned by the WebSSH user (UID 999)
|
||||
echo "Setting permissions on /data..."
|
||||
chmod 755 /data
|
||||
chown strixwebssh:strixwebssh /data
|
||||
chown webssh:webssh /data
|
||||
|
||||
# Check if chown worked
|
||||
if [ "$(stat -c %U /data)" != "strixwebssh" ]; then
|
||||
echo "WARNING: Could not change ownership of /data to strixwebssh"
|
||||
if [ "$(stat -c %U /data)" != "webssh" ]; then
|
||||
echo "WARNING: Could not change ownership of /data to webssh"
|
||||
echo "Current owner: $(stat -c %U /data)"
|
||||
echo "This may happen with bind mounts. Ensure host directory is writable."
|
||||
fi
|
||||
@@ -43,5 +43,5 @@ else
|
||||
echo "Caddy binary not found; continuing without reverse proxy"
|
||||
fi
|
||||
|
||||
# Start the application (run as the StrixWebSSH user)
|
||||
exec gosu strixwebssh python /app/src/run.py
|
||||
# Start the application (run as the WebSSH user)
|
||||
exec gosu webssh python /app/src/run.py
|
||||
Reference in new issue
Block a user