Initial upload

This commit is contained in:
2024-11-30 15:14:13 -07:00
parent 3875651b0e
commit 5597843630
119 changed files with 1222 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
migrate() {
local OLD_LOCATION="${1}"
local NEW_LOCATION="${2}"
if [[ -f ${OLD_LOCATION} ]]; then
echo "found ${OLD_LOCATION}"
if [[ ! -f ${NEW_LOCATION} ]]; then
echo "moving to ${NEW_LOCATION}"
mv "${OLD_LOCATION}" "${NEW_LOCATION}"
else
echo "new file location already exists ${NEW_LOCATION}"
fi
fi
}
# rename default to default.conf
migrate "/config/nginx/site-confs/default" "/config/nginx/site-confs/default.conf"