From dc1e28d562e36749f386073cb63c1686660d2901 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 9 Jun 2020 09:27:33 +0200 Subject: [PATCH] Bugfixing --- bin/update-nextcloud | 3 ++- lib/functions.rc | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/update-nextcloud b/bin/update-nextcloud index 034e373..318eb26 100755 --- a/bin/update-nextcloud +++ b/bin/update-nextcloud @@ -314,6 +314,7 @@ copy_config() { info "Copying configuration ..." CP "${cur_cfg_file}" "${new_cfg_file}" + CHOWN "${WWW_USER}:${WWW_GROUP}" "${new_cfg_file}" } @@ -332,7 +333,7 @@ stop_service() { change_symlinks() { info "Setting symlink '${CYAN}${NEXTCLOUD_DIR_LINK}${NORMAL}' -> '${CYAN}nextcloud-${NEW_VERSION}${NORMAL}' ..." - cd + cd "${WWW_BASE}" RM "${NEXTCLOUD_DIR_LINK}" LN "nextcloud-${NEW_VERSION}" "${NEXTCLOUD_DIR_LINK}" diff --git a/lib/functions.rc b/lib/functions.rc index 077e9bb..6c3663f 100644 --- a/lib/functions.rc +++ b/lib/functions.rc @@ -10,7 +10,7 @@ BLUE="" CYAN="" NORMAL="" -VERSION="0.3.5" +VERSION="0.3.6" STD_SHORT_OPTIONS="sdvhV" STD_LONG_OPTIONS="simulate,debug,verbose,nocolor,help,version" -- 2.39.5