mirror of
https://github.com/friendica/docker
synced 2024-06-23 17:59:23 +02:00
Bugfixing console call (with php)
This commit is contained in:
parent
2366e505dd
commit
836f275fee
|
@ -145,7 +145,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
echo "Starting Friendica installation ..."
|
echo "Starting Friendica installation ..."
|
||||||
# TODO Let the database time to warm up - not winning a beauty contest
|
# TODO Let the database time to warm up - not winning a beauty contest
|
||||||
sleep 10s
|
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
|
# TODO Workaround because of a strange permission issue
|
||||||
rm -fr /var/www/html/view/smarty3/compiled
|
rm -fr /var/www/html/view/smarty3/compiled
|
||||||
|
@ -162,7 +162,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
# upgrade
|
# upgrade
|
||||||
else
|
else
|
||||||
echo "Upgrading Friendica ..."
|
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"
|
echo "Upgrading finished"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -145,7 +145,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
echo "Starting Friendica installation ..."
|
echo "Starting Friendica installation ..."
|
||||||
# TODO Let the database time to warm up - not winning a beauty contest
|
# TODO Let the database time to warm up - not winning a beauty contest
|
||||||
sleep 10s
|
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
|
# TODO Workaround because of a strange permission issue
|
||||||
rm -fr /var/www/html/view/smarty3/compiled
|
rm -fr /var/www/html/view/smarty3/compiled
|
||||||
|
@ -162,7 +162,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
# upgrade
|
# upgrade
|
||||||
else
|
else
|
||||||
echo "Upgrading Friendica ..."
|
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"
|
echo "Upgrading finished"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -145,7 +145,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
echo "Starting Friendica installation ..."
|
echo "Starting Friendica installation ..."
|
||||||
# TODO Let the database time to warm up - not winning a beauty contest
|
# TODO Let the database time to warm up - not winning a beauty contest
|
||||||
sleep 10s
|
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
|
# TODO Workaround because of a strange permission issue
|
||||||
rm -fr /var/www/html/view/smarty3/compiled
|
rm -fr /var/www/html/view/smarty3/compiled
|
||||||
|
@ -162,7 +162,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
# upgrade
|
# upgrade
|
||||||
else
|
else
|
||||||
echo "Upgrading Friendica ..."
|
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"
|
echo "Upgrading finished"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -145,7 +145,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
echo "Starting Friendica installation ..."
|
echo "Starting Friendica installation ..."
|
||||||
# TODO Let the database time to warm up - not winning a beauty contest
|
# TODO Let the database time to warm up - not winning a beauty contest
|
||||||
sleep 10s
|
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
|
# TODO Workaround because of a strange permission issue
|
||||||
rm -fr /var/www/html/view/smarty3/compiled
|
rm -fr /var/www/html/view/smarty3/compiled
|
||||||
|
@ -162,7 +162,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
# upgrade
|
# upgrade
|
||||||
else
|
else
|
||||||
echo "Upgrading Friendica ..."
|
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"
|
echo "Upgrading finished"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -145,7 +145,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
echo "Starting Friendica installation ..."
|
echo "Starting Friendica installation ..."
|
||||||
# TODO Let the database time to warm up - not winning a beauty contest
|
# TODO Let the database time to warm up - not winning a beauty contest
|
||||||
sleep 10s
|
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
|
# TODO Workaround because of a strange permission issue
|
||||||
rm -fr /var/www/html/view/smarty3/compiled
|
rm -fr /var/www/html/view/smarty3/compiled
|
||||||
|
@ -162,7 +162,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
# upgrade
|
# upgrade
|
||||||
else
|
else
|
||||||
echo "Upgrading Friendica ..."
|
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"
|
echo "Upgrading finished"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -145,7 +145,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
echo "Starting Friendica installation ..."
|
echo "Starting Friendica installation ..."
|
||||||
# TODO Let the database time to warm up - not winning a beauty contest
|
# TODO Let the database time to warm up - not winning a beauty contest
|
||||||
sleep 10s
|
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
|
# TODO Workaround because of a strange permission issue
|
||||||
rm -fr /var/www/html/view/smarty3/compiled
|
rm -fr /var/www/html/view/smarty3/compiled
|
||||||
|
@ -162,7 +162,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
# upgrade
|
# upgrade
|
||||||
else
|
else
|
||||||
echo "Upgrading Friendica ..."
|
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"
|
echo "Upgrading finished"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -145,7 +145,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
echo "Starting Friendica installation ..."
|
echo "Starting Friendica installation ..."
|
||||||
# TODO Let the database time to warm up - not winning a beauty contest
|
# TODO Let the database time to warm up - not winning a beauty contest
|
||||||
sleep 10s
|
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
|
# TODO Workaround because of a strange permission issue
|
||||||
rm -fr /var/www/html/view/smarty3/compiled
|
rm -fr /var/www/html/view/smarty3/compiled
|
||||||
|
@ -162,7 +162,7 @@ if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ]; then
|
||||||
# upgrade
|
# upgrade
|
||||||
else
|
else
|
||||||
echo "Upgrading Friendica ..."
|
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"
|
echo "Upgrading finished"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue