Make it working with 13.0.6
This commit is contained in:
parent
67ab9b2da6
commit
015bec9bd7
2 changed files with 11 additions and 16 deletions
|
@ -44,22 +44,17 @@ admin_user=$(cat "$__object/parameter/admin-user")
|
|||
admin_pass=$(cat "$__object/parameter/admin-pass")
|
||||
domain=$(cat "$__object/parameter/domain")
|
||||
|
||||
# TODO check shasum of tar ball
|
||||
# TODO: Make this Work!!
|
||||
#if [ -d /var/www/nextcloud -a \$(cd /var/www/nextcloud; sudo -u www-data php occ status | grep -o true) ]; then
|
||||
# INSTALL_STATE=true
|
||||
#else
|
||||
# INSTALL_STATE=false
|
||||
#fi
|
||||
#echo \${INSTALL_STATE} > /tmp/install-state
|
||||
#if [ "\$INSTALL_STATE" != "true" ]; then
|
||||
# FIXME: replace if we an if on output && an explorer
|
||||
cat <<eof
|
||||
curl -s -L ${nextcloud_uri} -o /tmp/nextcloud.tar.bz2
|
||||
tar -C /var/www -xvjf /tmp/nextcloud.tar.bz2
|
||||
rm -f /tmp/nextcloud.tar.bz2
|
||||
if [ ! -e /var/www/nextcloud/occ ]; then
|
||||
cd /var/www
|
||||
curl -s -L ${nextcloud_uri} | tar xj
|
||||
chown -R www-data:www-data /var/www/nextcloud
|
||||
|
||||
cd /var/www/nextcloud
|
||||
sudo -u www-data php occ maintenance:install --database "pgsql" --database-name "$db_name" --database-user "$db_user" --database-pass "$db_pass" --admin-user "$admin_user" --admin-pass "$admin_pass"
|
||||
sudo -u www-data php occ config:system:set trusted_domains 2 --value="$domain"
|
||||
else
|
||||
true
|
||||
fi
|
||||
eof
|
||||
#fi
|
||||
|
|
|
@ -1 +1 @@
|
|||
14.0.4
|
||||
13.0.6
|
||||
|
|
Loading…
Reference in a new issue