Skip to content

Commit

Permalink
output some more information in automount,datadir,unattended-upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Aug 10, 2017
1 parent efa3a90 commit 00a483a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions etc/nextcloudpi-config.d/nc-automount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ EOF

# mount whatever is currently plugged in
udevadm control --reload-rules && udevadm trigger

[[ "$ACTIVE_" != "yes" ]] && echo "automount is now inactive" || echo "automount is now active"
}

# License
Expand Down
2 changes: 1 addition & 1 deletion etc/nextcloudpi-config.d/nc-datadir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ configure()
cd /var/www/nextcloud
sudo -u www-data php occ maintenance:mode --on

echo "moving data dir to $DATADIR_..."
echo "moving data dir from $SRCDIR to $DATADIR_..."
cp -ra "$SRCDIR" "$DATADIR_" || return 1

# tmp upload dir
Expand Down
1 change: 1 addition & 0 deletions etc/nextcloudpi-config.d/unattended-upgrades.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ APT::Periodic::AutocleanInterval "7";
Unattended-Upgrade::Automatic-Reboot "$AUTOREBOOT";
Unattended-Upgrade::Automatic-Reboot-Time "04:00";
EOF
echo "Unattended upgrades active: $ACTIVE_ (autoreboot $AUTOREBOOT_)"
}

cleanup()
Expand Down

0 comments on commit 00a483a

Please sign in to comment.