foldergram: backup env vars
This commit is contained in:
@@ -36,6 +36,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Backing up configuration"
|
msg_info "Backing up configuration"
|
||||||
cp -r /opt/foldergram/data /opt/foldergram_data
|
cp -r /opt/foldergram/data /opt/foldergram_data
|
||||||
|
cp /opt/foldergram/foldergram.env /opt/foldergram_env
|
||||||
msg_ok "Backed up configuration"
|
msg_ok "Backed up configuration"
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "foldergram" "foldergram/foldergram" "tarball"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "foldergram" "foldergram/foldergram" "tarball"
|
||||||
@@ -48,6 +49,7 @@ function update_script() {
|
|||||||
|
|
||||||
msg_info "Restoring configuration"
|
msg_info "Restoring configuration"
|
||||||
mv /opt/foldergram_data /opt/foldergram/data
|
mv /opt/foldergram_data /opt/foldergram/data
|
||||||
|
mv /opt/foldergram_env /opt/foldergram/foldergram.env
|
||||||
msg_ok "Restored configuration"
|
msg_ok "Restored configuration"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
@@ -66,4 +68,4 @@ description
|
|||||||
msg_ok "Completed successfully!\n"
|
msg_ok "Completed successfully!\n"
|
||||||
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
||||||
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
||||||
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
|
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:4141${CL}"
|
||||||
|
|||||||
Reference in New Issue
Block a user