Skip to content
Snippets Groups Projects
Commit e0d56e87 authored by Griefed's avatar Griefed :joystick:
Browse files

Update 60-config

parent 43058840
No related branches found
No related tags found
No related merge requests found
...@@ -4,12 +4,6 @@ ...@@ -4,12 +4,6 @@
ln -sf /data /app/ICEcoder/data ln -sf /data /app/ICEcoder/data
ln -sf /plugins /app/ICEcoder/plugins ln -sf /plugins /app/ICEcoder/plugins
# permissions
chown -R abc:abc \
/config \
/data \
/plugins
echo "[cont-init.d] Checking for lock.file" echo "[cont-init.d] Checking for lock.file"
# check for lock file to only run git operations once # check for lock file to only run git operations once
if [ ! -e /lock.file ]; then if [ ! -e /lock.file ]; then
...@@ -31,12 +25,16 @@ else ...@@ -31,12 +25,16 @@ else
echo "Lock exists just starting ICEcoder" echo "Lock exists just starting ICEcoder"
fi fi
# make our folders
mkdir -p \
/config/{log/ICEcoder,php,sess}
# create lock file after first run # create lock file after first run
touch /lock.file touch /lock.file
# copy php ini for user editing # copy php ini for user editing
[[ ! -e "/config/php/php.ini" ]] && \ [[ ! -e "/config/php/php.ini" ]] && \
cp /etc/php7/php.ini /config/php/php.ini cp /etc/php7/php.ini /config/php/php.ini
cp /config/php/php.ini /etc/php7/php.ini cp /config/php/php.ini /etc/php7/php.ini
# permissions # permissions
...@@ -46,6 +44,3 @@ chown -R abc:abc \ ...@@ -46,6 +44,3 @@ chown -R abc:abc \
/data \ /data \
/config \ /config \
/plugins /plugins
# make our folders
mkdir -p \
/config/{log/ICEcoder,php,sess}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment