Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-ICEcoder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Griefed
docker-ICEcoder
Commits
c1f64747
Commit
c1f64747
authored
4 years ago
by
Griefed
Browse files
Options
Downloads
Patches
Plain Diff
Sigh
parent
57c23cfe
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
root/etc/cont-init.d/50-install
+1
-1
1 addition, 1 deletion
root/etc/cont-init.d/50-install
root/etc/cont-init.d/60-config
+6
-5
6 additions, 5 deletions
root/etc/cont-init.d/60-config
with
7 additions
and
6 deletions
root/etc/cont-init.d/50-install
+
1
−
1
View file @
c1f64747
...
...
@@ -9,5 +9,5 @@ if [ ! -f "/config/www/ICEcoder/index.php" ]; then
mv
ICEcoder-
*
/app/ICEcoder
cd
/
||
exit
rm
-rf
/tmp/
*
/config/www/data
chown
-R
abc:abc /app/ICEcoder
/data
chown
-R
abc:abc /app/ICEcoder
fi
This diff is collapsed.
Click to expand it.
root/etc/cont-init.d/60-config
+
6
−
5
View file @
c1f64747
...
...
@@ -8,11 +8,11 @@ if [ ! -e /lock.file ]; then
-i
/etc/sudoers
sed
-e
's/^wheel:\(.*\)/wheel:\1,abc/g'
-i
/etc/group
# create directory for project
mkdir
-p
/data/code
mkdir
-p
/app/ICEcoder
/data/code
# make sure URL is set and folder is empty to clone code
if
[
${
GITURL
+x
}
]
&&
[
!
"
$(
/bin/ls
-A
/data/code 2>/dev/null
)
"
]
;
then
\
if
[
${
GITURL
+x
}
]
&&
[
!
"
$(
/bin/ls
-A
/app/ICEcoder
/data/code 2>/dev/null
)
"
]
;
then
\
# clone the url the user passed to this directory
git clone
"
${
GITURL
}
"
/data/code
git clone
"
${
GITURL
}
"
/app/ICEcoder
/data/code
fi
else
# lock exists not importing project this is a restart
...
...
@@ -38,8 +38,9 @@ cp /etc/php7/php.ini /config/php/php.ini
cp
/config/php/php.ini /etc/php7/php.ini
# Link data, code and plugins
ln
-sf
/data/code /app/ICEcoder/data
ln
-sf
/data/plugins /app/ICEcoder/plugins
rm
/data
&&
\
ln
-sf
/app/ICEcoder/data /data
ln
-sf
/app/ICEcoder/plugins /data/plugins
# permissions
chown
-R
abc:abc
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment