echo"Overwrite flag passed, but secrets.env not found. This script will refuse to execute an overwrite without secrets.env."
echo"Overwrite flag passed, but secrets.env not found. This script will refuse to execute an overwrite without secrets.env."
echo"If you are absolutely sure you want to overwrite your secrets with new secrets, copy the secrets.env.example file without modifying it's contents using command 'cp secrets.env.example secrets.env'."
echo"If you are absolutely sure you want to overwrite your secrets with new secrets, copy the secrets.env.example file without modifying it's contents using command 'cp secrets.env.example secrets.env'."
@ -38,8 +63,7 @@ if test -f "Revolt.toml"; then
fi
fi
echo"This script will back up your old config if you choose to overwrite."
echo"This script will back up your old config if you choose to overwrite."
echo"To overwrite the existing config, run the script again with the --overwrite flag"
echo"To overwrite the existing config, run the script again with the --overwrite flag"
echo"$0$* --overwrite"
usage
exit1
fi
fi
fi
fi
@ -48,7 +72,9 @@ if [ "$SECRETS_FOUND" -eq "0" ]; then
loadSecrets
loadSecrets
fi
fi
STOAT_HOSTNAME="https://$1"
echo"Configuring Stoat with hostname $DOMAIN"
STOAT_HOSTNAME="https://$DOMAIN"
read -rp "Would you like to place Stoat behind another reverse proxy? [y/N]: "
read -rp "Would you like to place Stoat behind another reverse proxy? [y/N]: "