2024-07-05 23:13:11 +00:00
|
|
|
#!/usr/bin/with-contenv bash
|
2024-07-05 14:50:36 +00:00
|
|
|
|
|
|
|
if [ ! -d "/config/arsse" ] || [ ! "$(ls -A "/config/arsse")" ]; then
|
|
|
|
echo -n "[init-config] Copying defaults to /config/arsse..."
|
|
|
|
cp -R /default/arsse/. /config/arsse
|
|
|
|
echo " done"
|
|
|
|
fi
|
|
|
|
if [ ! -d "/config/nginx" ] || [ ! "$(ls -A "/config/nginx")" ]; then
|
|
|
|
echo -n "[init-config] Copying defaults to /config/nginx..."
|
|
|
|
cp -R /default/nginx/. /config/nginx
|
2024-07-05 23:13:11 +00:00
|
|
|
echo " done"
|
|
|
|
fi
|
|
|
|
if [ ! -d "/config/log" ] || [ ! "$(ls -A "/config/log")" ]; then
|
|
|
|
echo -n "[init-config] Creating log folder at /config/log..."
|
|
|
|
mkdir -p /config/log/php
|
|
|
|
mkdir -p /config/log/nginx
|
2024-07-05 14:50:36 +00:00
|
|
|
echo " done"
|
|
|
|
fi
|
|
|
|
|
2024-07-05 23:13:11 +00:00
|
|
|
echo -n "[init-config] Setting permissions for ook user..."
|
|
|
|
chown -R ook:ook /app /config /default 2>/dev/null
|
|
|
|
echo " done"
|