Compare commits

...

4 Commits

Author SHA1 Message Date
David Bomba
c729ef8a48 Merge pull request #854 from benbrummer/fix_rm
remove hidden files
2026-01-09 09:00:07 +11:00
Benjamin Brummer
59232e8d22 remove hidden files 2026-01-07 16:33:37 +01:00
David Bomba
814dd175c7 Merge pull request #849 from benbrummer/debian
Fix spacing issue in init.sh script
2026-01-03 15:01:20 +11:00
benbrummer
06f723d7dc Fix spacing issue in init.sh script
Signed-off-by: benbrummer <info@benjamin-brummer.de>
2026-01-02 08:46:44 +01:00

View File

@@ -10,7 +10,7 @@ fi
if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then
# Check for required folders and create if needed
[ -d /var/www/html/public] || mkdir -p /var/www/html/public
[ -d /var/www/html/public ] || mkdir -p /var/www/html/public
[ -d /var/www/html/storage/app/public ] || mkdir -p /var/www/html/storage/app/public
[ -d /var/www/html/storage/framework/sessions ] || mkdir -p /var/www/html/storage/framework/sessions
[ -d /var/www/html/storage/framework/views ] || mkdir -p /var/www/html/storage/framework/views
@@ -25,8 +25,11 @@ if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then
cp -r /tmp/public/* \
/tmp/public/.htaccess \
/tmp/public/.well-known \
/var/www/html/public/ && \
rm -rf /tmp/public/*
/var/www/html/public/ &&
rm -rf /tmp/public/.htaccess \
/tmp/public/.well-known \
/tmp/public/*
fi
echo "Public Folder is up to date"
@@ -43,7 +46,7 @@ if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then
# Clear and cache config in production
if [ "$APP_ENV" = "production" ]; then
runuser -u www-data -- php artisan migrate --force
runuser -u www-data -- php artisan migrate --force
runuser -u www-data -- php artisan cache:clear # Clear after the migration
runuser -u www-data -- php artisan ninja:design-update
runuser -u www-data -- php artisan optimize
@@ -51,7 +54,7 @@ if [ "$*" = 'supervisord -c /etc/supervisor/supervisord.conf' ]; then
# If first IN run, it needs to be initialized
if [ "$(runuser -u www-data -- php artisan tinker --execute='echo Schema::hasTable("accounts") && !App\Models\Account::all()->first();')" = "1" ]; then
echo "Running initialization..."
runuser -u www-data -- php artisan db:seed --force
if [ -n "${IN_USER_EMAIL}" ] && [ -n "${IN_PASSWORD}" ]; then