2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-05-25 23:17:01 +02:00

Bugfixing console call (with php)

This commit is contained in:
Philipp Holzer 2018-10-05 00:19:56 +02:00
parent 2366e505dd
commit 836f275fee
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
7 changed files with 14 additions and 14 deletions

View file

@ -145,7 +145,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
echo "Starting Friendica installation ..."
# TODO Let the database time to warm up - not winning a beauty contest
sleep 10s
run_as "/var/www/html/bin/console autoinstall $install_options"
run_as "cd /var/www/html; php /var/www/html/bin/console.php autoinstall $install_options"
# TODO Workaround because of a strange permission issue
rm -fr /var/www/html/view/smarty3/compiled
@ -162,7 +162,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
# upgrade
else
echo "Upgrading Friendica ..."
run_as '/var/www/html/bin/console dbstructure update'
run_as 'cd /var/www/html; php /var/www/html/bin/console.php dbstructure update'
echo "Upgrading finished"
fi
fi

View file

@ -145,7 +145,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
echo "Starting Friendica installation ..."
# TODO Let the database time to warm up - not winning a beauty contest
sleep 10s
run_as "/var/www/html/bin/console autoinstall $install_options"
run_as "cd /var/www/html; php /var/www/html/bin/console.php autoinstall $install_options"
# TODO Workaround because of a strange permission issue
rm -fr /var/www/html/view/smarty3/compiled
@ -162,7 +162,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
# upgrade
else
echo "Upgrading Friendica ..."
run_as '/var/www/html/bin/console dbstructure update'
run_as 'cd /var/www/html; php /var/www/html/bin/console.php dbstructure update'
echo "Upgrading finished"
fi
fi

View file

@ -145,7 +145,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
echo "Starting Friendica installation ..."
# TODO Let the database time to warm up - not winning a beauty contest
sleep 10s
run_as "/var/www/html/bin/console autoinstall $install_options"
run_as "cd /var/www/html; php /var/www/html/bin/console.php autoinstall $install_options"
# TODO Workaround because of a strange permission issue
rm -fr /var/www/html/view/smarty3/compiled
@ -162,7 +162,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
# upgrade
else
echo "Upgrading Friendica ..."
run_as '/var/www/html/bin/console dbstructure update'
run_as 'cd /var/www/html; php /var/www/html/bin/console.php dbstructure update'
echo "Upgrading finished"
fi
fi

View file

@ -145,7 +145,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
echo "Starting Friendica installation ..."
# TODO Let the database time to warm up - not winning a beauty contest
sleep 10s
run_as "/var/www/html/bin/console autoinstall $install_options"
run_as "cd /var/www/html; php /var/www/html/bin/console.php autoinstall $install_options"
# TODO Workaround because of a strange permission issue
rm -fr /var/www/html/view/smarty3/compiled
@ -162,7 +162,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
# upgrade
else
echo "Upgrading Friendica ..."
run_as '/var/www/html/bin/console dbstructure update'
run_as 'cd /var/www/html; php /var/www/html/bin/console.php dbstructure update'
echo "Upgrading finished"
fi
fi

View file

@ -145,7 +145,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
echo "Starting Friendica installation ..."
# TODO Let the database time to warm up - not winning a beauty contest
sleep 10s
run_as "/var/www/html/bin/console autoinstall $install_options"
run_as "cd /var/www/html; php /var/www/html/bin/console.php autoinstall $install_options"
# TODO Workaround because of a strange permission issue
rm -fr /var/www/html/view/smarty3/compiled
@ -162,7 +162,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
# upgrade
else
echo "Upgrading Friendica ..."
run_as '/var/www/html/bin/console dbstructure update'
run_as 'cd /var/www/html; php /var/www/html/bin/console.php dbstructure update'
echo "Upgrading finished"
fi
fi

View file

@ -145,7 +145,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
echo "Starting Friendica installation ..."
# TODO Let the database time to warm up - not winning a beauty contest
sleep 10s
run_as "/var/www/html/bin/console autoinstall $install_options"
run_as "cd /var/www/html; php /var/www/html/bin/console.php autoinstall $install_options"
# TODO Workaround because of a strange permission issue
rm -fr /var/www/html/view/smarty3/compiled
@ -162,7 +162,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
# upgrade
else
echo "Upgrading Friendica ..."
run_as '/var/www/html/bin/console dbstructure update'
run_as 'cd /var/www/html; php /var/www/html/bin/console.php dbstructure update'
echo "Upgrading finished"
fi
fi

View file

@ -145,7 +145,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
echo "Starting Friendica installation ..."
# TODO Let the database time to warm up - not winning a beauty contest
sleep 10s
run_as "/var/www/html/bin/console autoinstall $install_options"
run_as "cd /var/www/html; php /var/www/html/bin/console.php autoinstall $install_options"
# TODO Workaround because of a strange permission issue
rm -fr /var/www/html/view/smarty3/compiled
@ -162,7 +162,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
# upgrade
else
echo "Upgrading Friendica ..."
run_as '/var/www/html/bin/console dbstructure update'
run_as 'cd /var/www/html; php /var/www/html/bin/console.php dbstructure update'
echo "Upgrading finished"
fi
fi