mirror of
https://github.com/friendica/docker
synced 2025-03-04 05:54:38 +01:00
Bugfixing console call (with php)
This commit is contained in:
parent
2366e505dd
commit
836f275fee
7 changed files with 14 additions and 14 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue