bugfixes
This commit is contained in:
parent
90f8e7d485
commit
5f9407dea5
2 changed files with 13 additions and 9 deletions
|
|
@ -3,12 +3,6 @@
|
|||
os=$(cat "$__global/explorer/os")
|
||||
os_version=$(cat "$__global/explorer/os_version")
|
||||
|
||||
# remove this check, if there is support for othere OS
|
||||
if [ ! "$os" = "debian" ]; then
|
||||
echo "OS $os is currently not supported." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case "$os" in
|
||||
centos)
|
||||
restart="/etc/init.d/nginx reload"
|
||||
|
|
@ -54,7 +48,12 @@ domain=$(cat "$__object/parameter/domain")
|
|||
|
||||
# TODO check shasum of tar ball
|
||||
cat <<eof
|
||||
INSTALL_STATE=\$([ -d /var/www/nextcloud ] && cd /var/www/nextcloud && sudo -u www-data php occ status| grep -o true)
|
||||
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
|
||||
curl -s -L ${nextcloud_uri} -o /tmp/nextcloud.tar.bz2
|
||||
tar -C /var/www -xvjf /tmp/nextcloud.tar.bz2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue