Add on update:
php console.php installer:lock
This commit is contained in:
parent
624784c8ba
commit
809f05e45e
@ -4,6 +4,10 @@ set -e
|
|||||||
|
|
||||||
echo "Starting Tikiwiki"
|
echo "Starting Tikiwiki"
|
||||||
|
|
||||||
|
echo "php --version"
|
||||||
|
|
||||||
|
#sh setup.sh -n composer
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
echo "Install"
|
echo "Install"
|
||||||
sudo -u tikiwiki php console.php database:configure --host $MYSQL_HOST $MYSQL_USER $MYSQL_PASSWORD $MYSQL_DATABASE
|
sudo -u tikiwiki php console.php database:configure --host $MYSQL_HOST $MYSQL_USER $MYSQL_PASSWORD $MYSQL_DATABASE
|
||||||
@ -33,6 +37,7 @@ update() {
|
|||||||
echo "Update"
|
echo "Update"
|
||||||
sudo -u tikiwiki php console.php database:update
|
sudo -u tikiwiki php console.php database:update
|
||||||
sudo -u tikiwiki php console.php package:update
|
sudo -u tikiwiki php console.php package:update
|
||||||
|
sudo -u tikiwiki php console.php installer:lock
|
||||||
}
|
}
|
||||||
|
|
||||||
[ -s ./db/local.php ] && update || install
|
[ -s ./db/local.php ] && update || install
|
||||||
|
Loading…
Reference in New Issue
Block a user