Add default location migration

This commit is contained in:
Eric Nemchik 2022-08-20 18:54:11 -05:00
parent 34f61f605c
commit 9cd7fa10ec

View File

@ -0,0 +1,10 @@
#!/usr/bin/with-contenv bash
DEFAULT_CONF="/config/nginx/site-confs/default.conf"
OLD_ROOT="root /usr/share/webapps/freshrss/p;"
NEW_ROOT="root /app/www/p;"
if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}";then
echo "updating root in ${DEFAULT_CONF}"
sed -i "s|${OLD_ROOT}|${NEW_ROOT}|" "${DEFAULT_CONF}"
fi