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
cf0a74e3
Commit
cf0a74e3
authored
1 year ago
by
Egor Kremnev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix scripts
parent
8cc4e222
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
apply-update.sh
scripts/apply-update.sh
+6
-5
No files found.
scripts/apply-update.sh
View file @
cf0a74e3
#!/usr/bin/env bash
# shellcheck disable=SC2086
if
[[
"
$(
id
-u
)
"
!=
"0"
]]
;
then
echo
"This script must be run as root"
1>&2
exit
1
fi
echo
"================================"
echo
"<===== Run apply-update.sh ====>"
echo
"================================"
...
...
@@ -30,11 +36,6 @@ success() {
echo
-e
"
\e
[32m[Success]
\e
[32m
$1
\e
[39m
$(for
i
in
{
12..21
}
;
do
echo
-en
"
\e
[32;1;
${
i
}
m.
\e
[0m"
;
done
;
echo
)
"
}
if
[[
"
$(
id
-u
)
"
!=
"0"
]]
;
then
echo
"This script must be run as root"
1>&2
exit
1
fi
cd
${
APPLICATION_ROOT_PATH
}
mkdir
-p
${
STASH_DB_DIR
}
...
...
This diff is collapsed.
Click to expand it.
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