This commit is contained in:
aptalca
2022-03-13 23:17:16 -04:00
parent ee37d7d648
commit 67c85fb06a

View File

@@ -15,7 +15,7 @@ mkdir -p \
echo -e '\n# Heimdall user authorization\nfastcgi_param PHP_AUTH_USER $remote_user;\nfastcgi_param PHP_AUTH_PW $http_authorization;' >> \ echo -e '\n# Heimdall user authorization\nfastcgi_param PHP_AUTH_USER $remote_user;\nfastcgi_param PHP_AUTH_PW $http_authorization;' >> \
/etc/nginx/fastcgi_params && \ /etc/nginx/fastcgi_params && \
rm -rf /heimdall && \ rm -rf /heimdall && \
cp /var/www/localhost/heimdall/app/searchproviders.yaml /var/www/localhost/heimdall/app/searchproviders.yaml.orig && \ cp /var/www/localhost/heimdall/storage/app/searchproviders.yaml /var/www/localhost/heimdall/storage/app/searchproviders.yaml.orig && \
chown -R abc:abc /var/www/localhost/heimdall chown -R abc:abc /var/www/localhost/heimdall
# create symlinks # create symlinks
@@ -46,9 +46,9 @@ done
php /var/www/localhost/heimdall/artisan key:generate php /var/www/localhost/heimdall/artisan key:generate
# copy searchproviders if not exists and symlink # copy searchproviders if not exists and symlink
[[ ! -f /config/www/searchproviders.yaml ]] && \ [[ ! -f /config/www/searchproviders.yaml ]] && \
cp /var/www/localhost/heimdall/app/searchproviders.yaml.orig /config/www/searchproviders.yaml cp /var/www/localhost/heimdall/storage/app/searchproviders.yaml.orig /config/www/searchproviders.yaml
rm -rf /var/www/localhost/heimdall/app/searchproviders.yaml rm -rf /var/www/localhost/heimdall/storage/app/searchproviders.yaml
ln -s /config/www/searchproviders.yaml /var/www/localhost/heimdall/app/searchproviders.yaml ln -s /config/www/searchproviders.yaml /var/www/localhost/heimdall/storage/app/searchproviders.yaml
# set queue driver to database # set queue driver to database
sed -i 's/QUEUE_DRIVER=sync/QUEUE_DRIVER=database/' /config/www/.env sed -i 's/QUEUE_DRIVER=sync/QUEUE_DRIVER=database/' /config/www/.env