Set installed flag

This commit is contained in:
Bob Mottram 2016-03-12 14:26:21 +00:00
parent 56440acc12
commit bd327011dc
1 changed files with 3 additions and 0 deletions

View File

@ -6560,8 +6560,10 @@ function upgrade_owncloud_finish {
sed -i "s|'dbuser'.*|'dbuser' => '$OWNCLOUD_DBUSER',|g" $OWNCLOUD_PATH/config/config.php
sed -i "s|'dbpassword'.*|'dbpassword' => '$OWNCLOUD_DBPASS',|g" $OWNCLOUD_PATH/config/config.php
sed -i "s|'secret'.*|'secret' => '$OWNCLOUD_SECRET',|g" $OWNCLOUD_PATH/config/config.php
sed -i "s|'installed'.*|'secret' => true,|g" $OWNCLOUD_PATH/config/config.php
fi
cp $OWNCLOUD_PATH/config/config.php $OWNCLOUD_PATH/config/config.upgrade
chown root:root $OWNCLOUD_PATH/config/config.php
# re-index the files
@ -6922,6 +6924,7 @@ function install_owncloud_official_deb {
sed -i "s|'dbuser'.*|'dbuser' => '$OWNCLOUD_DBUSER',|g" $OWNCLOUD_PATH/config/config.php
sed -i "s|'dbpassword'.*|'dbpassword' => '$OWNCLOUD_DBPASS',|g" $OWNCLOUD_PATH/config/config.php
sed -i "s|'mail_domain'.*|'mail_domain' => '$DEFAULT_DOMAIN_NAME',|g" $OWNCLOUD_PATH/config/config.php
sed -i "s|'installed'.*|'secret' => true,|g" $OWNCLOUD_PATH/config/config.php
fi
echo 'install_owncloud_official_deb' >> $COMPLETION_FILE