fi
fi
+ NEXTCLOUD_DIR_OLD="${NEXTCLOUD_DIR}.old.${OLD_VERSION}"
+ if [[ -e "${NEXTCLOUD_DIR_OLD}" ]] ; then
+ local i=0
+ NEXTCLOUD_DIR_OLD="${NEXTCLOUD_DIR}.old.${OLD_VERSION}.${i}"
+ while [[ -e "${NEXTCLOUD_DIR_OLD}" ]] ; do
+ i=$(( i + 1 ))
+ NEXTCLOUD_DIR_OLD="${NEXTCLOUD_DIR}.old.${OLD_VERSION}.${i}"
+ done
+ fi
+
echo
info "Updating Nextcloud from version '${GREEN}${OLD_VERSION}${NORMAL}' to '${GREEN}${NEW_VERSION}${NORMAL}' ..."
+ debug "Old directory: '${CYAN}${NEXTCLOUD_DIR_OLD}${NORMAL}'."
}
CYAN=""
NORMAL=""
-VERSION="0.4.3"
+VERSION="0.5.0"
STD_SHORT_OPTIONS="sdvqhV"
STD_LONG_OPTIONS="simulate,debug,verbose,quiet,nocolor,help,version"