check for file before going sed on it
This commit is contained in:
parent
cb524cb098
commit
0eaa80950a
@ -12,8 +12,9 @@ PGPASSWORD=$DB_PASSWORD psql -h $DB_HOST -U $DB_USER -d $DB_NAME -c "SELECT EXIS
|
|||||||
if [ $? -ne 1 ]; then
|
if [ $? -ne 1 ]; then
|
||||||
cd /var/lib/nextcloud
|
cd /var/lib/nextcloud
|
||||||
|
|
||||||
|
if [ ! -f /var/lib/nextcloud/config/config.php ]; then
|
||||||
sed -i -e "s/'installed' => true,/'installed' => false,/g" /var/lib/nextcloud/config/config.php
|
sed -i -e "s/'installed' => true,/'installed' => false,/g" /var/lib/nextcloud/config/config.php
|
||||||
|
fi
|
||||||
s6-setuidgid nginx ./occ maintenance:install \
|
s6-setuidgid nginx ./occ maintenance:install \
|
||||||
--database=pgsql \
|
--database=pgsql \
|
||||||
--database-host=$DB_HOST \
|
--database-host=$DB_HOST \
|
||||||
|
Loading…
Reference in New Issue
Block a user