Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-SUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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-SUI
Commits
33349382
Unverified
Commit
33349382
authored
3 years ago
by
Griefed
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #3 from Griefed/develop
Replace check for file and add logging
parents
c9808b6b
05c3a8d1
No related branches found
Branches containing commit
Tags
1.0.3
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
root/etc/cont-init.d/30-install
+2
-0
2 additions, 0 deletions
root/etc/cont-init.d/30-install
root/etc/cont-init.d/40-config
+9
-3
9 additions, 3 deletions
root/etc/cont-init.d/40-config
with
11 additions
and
3 deletions
root/etc/cont-init.d/30-install
+
2
−
0
View file @
33349382
...
...
@@ -19,6 +19,8 @@ if [ ! -f /config/www/sui.lock ]; then
/config/www/
rm
-Rf
/tmp/sui
touch
/config/www/sui.lock
else
echo
"**** lock-file found. Skipping installation... ****"
fi
# Permission Stuffs
...
...
This diff is collapsed.
Click to expand it.
root/etc/cont-init.d/40-config
+
9
−
3
View file @
33349382
#!/usr/bin/with-contenv bash
if
[
!
-
a
/config/www/apps.json
]
;
then
if
[
!
-
f
/config/www/apps.json
]
;
then
cp
-f
\
/defaults/apps.json
\
/config/www/apps.json
sed
-i
\
"s/DOMAIN/
${
DOMAIN
}
/g"
\
/config/www/apps.json
else
echo
"**** apps.json-file found. Skipping installation... ****"
fi
if
[
!
-
a
/config/www/links.json
]
;
then
if
[
!
-
f
/config/www/links.json
]
;
then
cp
-f
\
/defaults/links.json
\
/config/www/links.json
else
echo
"**** links.json-file found. Skipping installation... ****"
fi
if
[
!
-
a
/config/www/index.html
]
;
then
if
[
!
-
f
/config/www/index.html
]
;
then
cp
-f
\
/defaults/index.html
\
/config/www/index.html
sed
-i
\
"s/PROTOCOL/
${
PROTOCOL
}
/g"
\
/config/www/index.html
else
echo
"**** index.html-file found. Skipping installation... ****"
fi
# Permissions Stuffs
...
...
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