mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-19 20:09:16 +00:00
Use exec in wrapper scripts
This commit is contained in:
parent
a5061c81b1
commit
2dc2b073e4
@ -8,4 +8,4 @@ sed -i -e 's/<contact>/'$CONTACT'/g' \
|
|||||||
-e 's/<domain>/'$DOMAIN'/g' \
|
-e 's/<domain>/'$DOMAIN'/g' \
|
||||||
-e 's|<webroot>|'$WEBROOT'|g' /lutim/lutim.conf
|
-e 's|<webroot>|'$WEBROOT'|g' /lutim/lutim.conf
|
||||||
chown -R lutim:lutim /lutim /data
|
chown -R lutim:lutim /lutim /data
|
||||||
cd /lutim && su lutim -c "carton exec hypnotoad -f /lutim/script/lutim"
|
cd /lutim && exec su lutim -c "carton exec hypnotoad -f /lutim/script/lutim"
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
addgroup -g ${GID} lychee && adduser -h /lychee -s /bin/sh -D -G lychee -u ${UID} lychee
|
addgroup -g ${GID} lychee && adduser -h /lychee -s /bin/sh -D -G lychee -u ${UID} lychee
|
||||||
mkdir /lychee/uploads/big /lychee/uploads/import /lychee/uploads/medium /lychee/uploads/thumb
|
mkdir /lychee/uploads/big /lychee/uploads/import /lychee/uploads/medium /lychee/uploads/thumb
|
||||||
chown -R lychee:lychee /lychee /var/run/php-fpm.sock /var/lib/nginx /tmp
|
chown -R lychee:lychee /lychee /var/run/php-fpm.sock /var/lib/nginx /tmp
|
||||||
supervisord -c /usr/local/etc/supervisord.conf
|
exec supervisord -c /usr/local/etc/supervisord.conf
|
||||||
|
@ -12,4 +12,4 @@ chown -R nextcloud:nextcloud /nextcloud /data /config /apps2 /var/run/php-fpm.so
|
|||||||
ln -s /config/config.php /nextcloud/config/config.php
|
ln -s /config/config.php /nextcloud/config/config.php
|
||||||
ln -s /apps2 /nextcloud
|
ln -s /apps2 /nextcloud
|
||||||
|
|
||||||
supervisord -c /etc/supervisor/supervisord.conf
|
exec supervisord -c /etc/supervisor/supervisord.conf
|
||||||
|
@ -12,4 +12,4 @@ chown -R nextcloud:nextcloud /nextcloud /data /config /apps2 /var/run/php-fpm.so
|
|||||||
ln -s /config/config.php /nextcloud/config/config.php
|
ln -s /config/config.php /nextcloud/config/config.php
|
||||||
ln -s /apps2 /nextcloud
|
ln -s /apps2 /nextcloud
|
||||||
|
|
||||||
supervisord -c /etc/supervisor/supervisord.conf
|
exec supervisord -c /etc/supervisor/supervisord.conf
|
||||||
|
@ -12,4 +12,4 @@ chown -R nextcloud:nextcloud /nextcloud /data /config /apps2 /var/run/php-fpm.so
|
|||||||
ln -s /config/config.php /nextcloud/config/config.php
|
ln -s /config/config.php /nextcloud/config/config.php
|
||||||
ln -s /apps2 /nextcloud
|
ln -s /apps2 /nextcloud
|
||||||
|
|
||||||
supervisord -c /etc/supervisor/supervisord.conf
|
exec supervisord -c /etc/supervisor/supervisord.conf
|
||||||
|
@ -9,4 +9,4 @@ elif [ -f /config/config.ini.php ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R piwik:piwik /piwik /config /var/run/php-fpm.sock /var/lib/nginx /tmp
|
chown -R piwik:piwik /piwik /config /var/run/php-fpm.sock /var/lib/nginx /tmp
|
||||||
supervisord -c /usr/local/etc/supervisord.conf
|
exec supervisord -c /usr/local/etc/supervisord.conf
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
addgroup -g ${GID} zerobin && adduser -h /zerobin -s /bin/sh -D -G zerobin -u ${UID} zerobin
|
addgroup -g ${GID} zerobin && adduser -h /zerobin -s /bin/sh -D -G zerobin -u ${UID} zerobin
|
||||||
touch /var/run/php-fpm.sock
|
touch /var/run/php-fpm.sock
|
||||||
chown -R zerobin:zerobin /zerobin /var/run/php-fpm.sock /var/lib/nginx /tmp
|
chown -R zerobin:zerobin /zerobin /var/run/php-fpm.sock /var/lib/nginx /tmp
|
||||||
supervisord -c /usr/local/etc/supervisord.conf
|
exec supervisord -c /usr/local/etc/supervisord.conf
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
addgroup -g ${GID} rainloop && adduser -h /rainloop -s /bin/sh -D -G rainloop -u ${UID} rainloop
|
addgroup -g ${GID} rainloop && adduser -h /rainloop -s /bin/sh -D -G rainloop -u ${UID} rainloop
|
||||||
chown -R rainloop:rainloop /rainloop /var/run/php-fpm.sock /var/lib/nginx /tmp
|
chown -R rainloop:rainloop /rainloop /var/run/php-fpm.sock /var/lib/nginx /tmp
|
||||||
supervisord -c /usr/local/etc/supervisord.conf
|
exec supervisord -c /usr/local/etc/supervisord.conf
|
||||||
|
@ -4,4 +4,4 @@ sed -i -e "s|base_url : False|base_url : ${BASE_URL}|g" \
|
|||||||
-e "s/ultrasecretkey/$(openssl rand -hex 16)/g" \
|
-e "s/ultrasecretkey/$(openssl rand -hex 16)/g" \
|
||||||
/usr/local/searx/searx/settings.yml
|
/usr/local/searx/searx/settings.yml
|
||||||
|
|
||||||
python /usr/local/searx/searx/webapp.py
|
exec python /usr/local/searx/searx/webapp.py
|
||||||
|
@ -9,7 +9,7 @@ chown -R subsonic:subsonic /data /playlists /subsonic
|
|||||||
|
|
||||||
sleep 7 # avoid 503
|
sleep 7 # avoid 503
|
||||||
|
|
||||||
su subsonic << EOF
|
exec su subsonic << EOF
|
||||||
java -Xmx200m \
|
java -Xmx200m \
|
||||||
-Dsubsonic.home=/data \
|
-Dsubsonic.home=/data \
|
||||||
-Dsubsonic.host=0.0.0.0 \
|
-Dsubsonic.host=0.0.0.0 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user