Commit cea1e598 authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

Hardcode template name to custom

parent a05e2ade
......@@ -12,13 +12,11 @@ RUN \
curl -Ls https://github.com/PrivateBin/PrivateBin/archive/${RELEASE}.tar.gz | tar -xzf - --strip 1 -C /app/code \
&& mv .htaccess.disabled .htaccess \
&& rm *.md \
&& mv /app/code/tpl /app/code/tpl.orig \
&& mv /app/code/img /app/code/img.orig \
&& mv /app/code/css /app/code/css.orig \
&& ln -s /app/data/custom_template/custom.php /app/code/tpl/custom.php \
&& ln -s /app/data/custom_template/css /app/code/css/custom \
&& ln -s /app/data/custom_template/js /app/code/js/custom \
&& ln -s /app/data/custom_template/img /app/code/img/custom \
&& ln -s /app/data/conf.php /app/code/cfg/conf.php \
&& ln -s /app/data/templates /app/code/tpl \
&& ln -s /app/data/images /app/code/img \
&& ln -s /app/data/style /app/code/css \
&& ln -s /app/data/data /app/code/data \
&& chown -R www-data.www-data /app/code
......
......@@ -2,10 +2,7 @@
set -eu
mkdir -p /app/data/data
cp -R /app/code/tpl.orig /app/data/templates
cp -R /app/code/img.orig /app/data/images
cp -R /app/code/css.orig /app/data/style
mkdir -p /app/data/data /app/data/custom_template/css /app/data/custom_template/img /app/data/custom_template/js
echo "==> Creating config"
if [[ ! -f /app/data/conf.php ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment