Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
aphp1_classwork80
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Egor Kremnev
aphp1_classwork80
Commits
0b6fa73f
Commit
0b6fa73f
authored
Aug 15, 2023
by
Egor Kremnev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix scripts
parent
8c82199e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
apply-update.sh
scripts/apply-update.sh
+2
-2
deploy-update-package.sh
scripts/deploy-update-package.sh
+0
-3
No files found.
scripts/apply-update.sh
View file @
0b6fa73f
...
@@ -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
}
...
...
scripts/deploy-update-package.sh
View file @
0b6fa73f
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment