Commit 0b6fa73f authored by Egor Kremnev's avatar Egor Kremnev

fix scripts

parent 8c82199e
...@@ -7,7 +7,7 @@ echo "================================" ...@@ -7,7 +7,7 @@ echo "================================"
if [[ "$(id -u)" != "0" ]]; then if [[ "$(id -u)" != "0" ]]; then
echo "This script must be run as root" 1>&2 echo "This script must be run as root" 1>&2
# exit 1 exit 1
fi fi
set -e set -e
...@@ -18,7 +18,7 @@ VERSION=$(cat ${APPLICATION_ROOT_PATH}/VERSION) ...@@ -18,7 +18,7 @@ VERSION=$(cat ${APPLICATION_ROOT_PATH}/VERSION)
PROJECT_ROOT=${APPLICATION_ROOT_PATH}/application PROJECT_ROOT=${APPLICATION_ROOT_PATH}/application
BACKUP_DIR=/application_backups BACKUP_DIR=~/application_backups
# Create backup directory if not exist # Create backup directory if not exist
mkdir -p ${BACKUP_DIR} mkdir -p ${BACKUP_DIR}
......
...@@ -21,9 +21,6 @@ PATH_TO_SCRIPTS_DIR=${4}/scripts ...@@ -21,9 +21,6 @@ PATH_TO_SCRIPTS_DIR=${4}/scripts
PATH_TO_NGINX_CONFIG_FILE=${PATH_TO_SCRIPTS_DIR}/nginx/default.conf PATH_TO_NGINX_CONFIG_FILE=${PATH_TO_SCRIPTS_DIR}/nginx/default.conf
APPLICATION_ROOT_PATH=/home/deploy APPLICATION_ROOT_PATH=/home/deploy
echo "APP_PATH ${APP_PATH}"
echo "PATH_TO_SCRIPTS_DIR ${PATH_TO_SCRIPTS_DIR}"
# Archive name # Archive name
LATEST_ARTIFACT_NAME=application-${VERSION}.tar.gz LATEST_ARTIFACT_NAME=application-${VERSION}.tar.gz
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment