Skip to content

Commit

Permalink
update to NC 13.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Jun 18, 2018
1 parent 57852ad commit 676776f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 19 deletions.
4 changes: 3 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

[v0.56.25](https://github.com/nextcloud/nextcloudpi/commit/13b8060) (2018-06-18) nc-snapshot-sync: upgrade
[v0.57.0](https://github.com/nextcloud/nextcloudpi/commit/2591f25) (2018-06-18) update to NC 13.0.4

[v0.56.25](https://github.com/nextcloud/nextcloudpi/commit/fe16326) (2018-06-18) nc-snapshot-sync: upgrade

[v0.56.24](https://github.com/nextcloud/nextcloudpi/commit/16ce683) (2018-06-18) nc-datadir: make sure we have the correct permissions

Expand Down
4 changes: 2 additions & 2 deletions etc/ncp-config.d/nc-autoupdate-nc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
ACTIVE_=no
NOTIFYUSER_=ncp
DESCRIPTION="Automatically apply Nextcloud updates"
VERSION=13.0.2
VERSION=13.0.4

configure()
{
[[ $ACTIVE_ != "yes" ]] && {
[[ "$ACTIVE_" != "yes" ]] && {
rm /etc/cron.daily/ncp-autoupdate-nc
echo "automatic Nextcloud updates disabled"
return 0
Expand Down
2 changes: 1 addition & 1 deletion etc/ncp-config.d/nc-nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# More at https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/
#

VER_=13.0.2
VER_=13.0.4
BETA_=no
MAXFILESIZE_=2G
MEMORYLIMIT_=768M
Expand Down
2 changes: 1 addition & 1 deletion etc/ncp-config.d/nc-update-nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# More at https://ownyourbits.com/2017/02/13/nextcloud-ready-raspberry-pi-image/
#

VERSION_=13.0.2
VERSION_=13.0.4
DESCRIPTION="Update current instance to a new Nextcloud version"

configure()
Expand Down
21 changes: 7 additions & 14 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,6 @@ done
:
}

# fix exit status autoupdate
F="$CONFDIR"/nc-autoupdate-ncp.sh
grep -q '^ACTIVE_=yes$' "$F" && {
cd "$CONFDIR" &>/dev/null
activate_script nc-autoupdate-ncp.sh
cd - &>/dev/null
}
F="$CONFDIR"/nc-autoupdate-nc.sh
grep -q '^ACTIVE_=yes$' "$F" && {
cd "$CONFDIR" &>/dev/null
activate_script nc-autoupdate-nc.sh
cd - &>/dev/null
}

# fix update httpd log location in virtual host after nc-datadir
sed -i "s|CustomLog.*|CustomLog /var/log/apache2/nc-access.log combined|" /etc/apache2/sites-available/nextcloud.conf
sed -i "s|ErrorLog .*|ErrorLog /var/log/apache2/nc-error.log|" /etc/apache2/sites-available/nextcloud.conf
Expand Down Expand Up @@ -226,6 +212,13 @@ EOF
wget -q https://raw.githubusercontent.com/nachoparker/btrfs-snp/master/btrfs-snp -O /usr/local/bin/btrfs-snp
chmod +x /usr/local/bin/btrfs-snp

# update to NC13.0.4
F="$CONFDIR"/nc-autoupdate-nc.sh
grep -q '^ACTIVE_=yes$' "$F" && {
cd "$CONFDIR" &>/dev/null
activate_script nc-autoupdate-nc.sh
cd - &>/dev/null
}
} # end - only live updates

exit 0
Expand Down

0 comments on commit 676776f

Please sign in to comment.