mirror of
https://github.com/linuxserver/docker-snapdrop.git
synced 2026-02-20 08:17:27 +08:00
Add default location migration
This commit is contained in:
parent
599e7aec80
commit
760d6b3f4c
10
root/migrations/02-default-location
Normal file
10
root/migrations/02-default-location
Normal file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
DEFAULT_CONF="/config/nginx/site-confs/default.conf"
|
||||
OLD_ROOT="root /app/snapdrop/client;"
|
||||
NEW_ROOT="root /app/www/client;"
|
||||
|
||||
if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}";then
|
||||
echo "updating root in ${DEFAULT_CONF}"
|
||||
sed -i "s|${OLD_ROOT}|${NEW_ROOT}|" "${DEFAULT_CONF}"
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user