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

Sigh

parent 57c23cfe
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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 \
......
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