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
238c85b1
Commit
238c85b1
authored
Aug 22, 2023
by
Egor Kremnev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix scripts
parent
eb32a463
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
apply-update.sh
scripts/apply-update.sh
+1
-2
No files found.
scripts/apply-update.sh
View file @
238c85b1
...
@@ -70,7 +70,6 @@ cd ${PROJECT_ROOT}
...
@@ -70,7 +70,6 @@ cd ${PROJECT_ROOT}
info
"# Set environments"
info
"# Set environments"
cp
${
PROJECT_ROOT
}
/.env
${
APPLICATION_ROOT_PATH
}
/.env
cp
${
PROJECT_ROOT
}
/.env
${
APPLICATION_ROOT_PATH
}
/.env
source
.env
source
.env
env
sed
-i
-e
's/^#DB_HOST=/DB_HOST=/g'
".env"
sed
-i
-e
's/^#DB_HOST=/DB_HOST=/g'
".env"
sed
-i
-e
's/^\(DB_HOST=\).*/\1'
$(
[
-n
"
$DB_HOST_ENV
"
]
&&
echo
"
$DB_HOST_ENV
"
||
echo
"
$DB_HOST
"
)
'/'
${
APPLICATION_ROOT_PATH
}
/.env
sed
-i
-e
's/^\(DB_HOST=\).*/\1'
$(
[
-n
"
$DB_HOST_ENV
"
]
&&
echo
"
$DB_HOST_ENV
"
||
echo
"
$DB_HOST
"
)
'/'
${
APPLICATION_ROOT_PATH
}
/.env
...
@@ -84,7 +83,7 @@ sed -i -e 's/^\(DB_USERNAME=\).*/\1'$([ -n "$DB_USERNAME_ENV" ] && echo "$DB_USE
...
@@ -84,7 +83,7 @@ sed -i -e 's/^\(DB_USERNAME=\).*/\1'$([ -n "$DB_USERNAME_ENV" ] && echo "$DB_USE
sed
-i
-e
's/^#DB_PASSWORD=/DB_PASSWORD=/g'
".env"
sed
-i
-e
's/^#DB_PASSWORD=/DB_PASSWORD=/g'
".env"
sed
-i
-e
's/^\(DB_PASSWORD=\).*/\1'
$(
[
-n
"
$DB_PASSWORD_ENV
"
]
&&
echo
"
$DB_PASSWORD_ENV
"
||
echo
"
$DB_PASSWORD
"
)
'/'
${
APPLICATION_ROOT_PATH
}
/.env
sed
-i
-e
's/^\(DB_PASSWORD=\).*/\1'
$(
[
-n
"
$DB_PASSWORD_ENV
"
]
&&
echo
"
$DB_PASSWORD_ENV
"
||
echo
"
$DB_PASSWORD
"
)
'/'
${
APPLICATION_ROOT_PATH
}
/.env
cat
${
APPLICATION_ROOT_PATH
}
/.env
>
${
PROJECT_ROOT
}
/
cat
${
APPLICATION_ROOT_PATH
}
/.env
>
${
PROJECT_ROOT
}
/
.env
info
"# Create database backup"
info
"# Create database backup"
mysqldump
-u
${
DB_DATABASE
}
>
DB_DUMP_PATH
mysqldump
-u
${
DB_DATABASE
}
>
DB_DUMP_PATH
...
...
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