mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-03-28 17:32:36 +01:00
13 lines
350 B
Bash
13 lines
350 B
Bash
#!/bin/bash
|
|
|
|
# if /app/logs is not writable, change ownership
|
|
if [ -w /app/logs ]; then
|
|
chown -R appuser:appuser /app/logs
|
|
fi
|
|
# if /app/data is not writable, change ownership
|
|
if [ -w /app/data ]; then
|
|
chown -R appuser:appuser /app/data
|
|
fi
|
|
|
|
# Run the bot as appuser (if you want to drop privileges)
|
|
exec su appuser -c "python /app/mesh_bot.py" |