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

Bugfixes

parent c1f64747
No related branches found
No related tags found
No related merge requests found
...@@ -86,4 +86,4 @@ COPY root/ / ...@@ -86,4 +86,4 @@ COPY root/ /
# Communicate ports and volumes to be used # Communicate ports and volumes to be used
EXPOSE 8080 EXPOSE 8080
VOLUME /config /data VOLUME /config /data /plugins
...@@ -6,8 +6,13 @@ if [ ! -f "/config/www/ICEcoder/index.php" ]; then ...@@ -6,8 +6,13 @@ if [ ! -f "/config/www/ICEcoder/index.php" ]; then
"https://github.com/icecoder/ICEcoder/archive/${ICECODER_VERSION}.zip" "https://github.com/icecoder/ICEcoder/archive/${ICECODER_VERSION}.zip"
cd /tmp || exit cd /tmp || exit
unzip -qq install.zip unzip -qq install.zip
mkdir /plugins
mv ICEcoder-*/data/* /data/
mv ICEcoder-*/plugins/* /plugins/
mv ICEcoder-* /app/ICEcoder mv ICEcoder-* /app/ICEcoder
cd / || exit cd / || exit
rm -rf /tmp/* /config/www/data rm -rf /tmp/* /config/www/data
rm -rf /app/ICEcoder/data
rm -rf /app/ICEcoder/plugins
chown -R abc:abc /app/ICEcoder chown -R abc:abc /app/ICEcoder
fi fi
#!/usr/bin/with-contenv bash
# Link data, code and plugins
ln -sf /data /app/ICEcoder/data
ln -sf /plugins /app/ICEcoder/plugins
# permissions
chown -R abc:abc \
/config
/data
/plugins
...@@ -8,11 +8,11 @@ if [ ! -e /lock.file ]; then ...@@ -8,11 +8,11 @@ if [ ! -e /lock.file ]; then
-i /etc/sudoers -i /etc/sudoers
sed -e 's/^wheel:\(.*\)/wheel:\1,abc/g' -i /etc/group sed -e 's/^wheel:\(.*\)/wheel:\1,abc/g' -i /etc/group
# create directory for project # create directory for project
mkdir -p /app/ICEcoder/data/code mkdir -p /data/code
# make sure URL is set and folder is empty to clone code # make sure URL is set and folder is empty to clone code
if [ ${GITURL+x} ] && [ ! "$(/bin/ls -A /app/ICEcoder/data/code 2>/dev/null)" ] ; then \ if [ ${GITURL+x} ] && [ ! "$(/bin/ls -A /data/code 2>/dev/null)" ] ; then \
# clone the url the user passed to this directory # clone the url the user passed to this directory
git clone "${GITURL}" /app/ICEcoder/data/code git clone "${GITURL}" /data/code
fi fi
else else
# lock exists not importing project this is a restart # lock exists not importing project this is a restart
...@@ -22,27 +22,18 @@ fi ...@@ -22,27 +22,18 @@ fi
# create lock file after first run # create lock file after first run
touch /lock.file touch /lock.file
# copy php ini for user editing
[[ ! -e "/config/php/php.ini" ]] && \
cp /etc/php7/php.ini /config/php/php.ini
cp /config/php/php.ini /etc/php7/php.ini
# permissions # permissions
mkdir -p /config/sessions mkdir -p /config/sessions
echo "[cont-init.d] Setting permissions this may take some time" echo "[cont-init.d] Setting permissions this may take some time"
chown -R abc:abc \ chown -R abc:abc \
/data \ /data \
/config /config
/plugins
# make our folders # make our folders
mkdir -p \ mkdir -p \
/config/{log/ICEcoder,php,sess} /config/{log/ICEcoder,php,sess}
# copy php ini for user editing
[[ ! -e "/config/php/php.ini" ]] && \
cp /etc/php7/php.ini /config/php/php.ini
cp /config/php/php.ini /etc/php7/php.ini
# Link data, code and plugins
rm /data && \
ln -sf /app/ICEcoder/data /data
ln -sf /app/ICEcoder/plugins /data/plugins
# permissions
chown -R abc:abc \
/config
/data
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