diff options
-rw-r--r-- | .github/issue_template.md | 6 | ||||
-rw-r--r-- | nextcloudpi.sh | 3 | ||||
-rwxr-xr-x | update.sh | 3 |
3 files changed, 12 insertions, 0 deletions
diff --git a/.github/issue_template.md b/.github/issue_template.md index 982fe156..6e7034df 100644 --- a/.github/issue_template.md +++ b/.github/issue_template.md @@ -22,6 +22,12 @@ Keep in mind that many problems come from faulty power sources and corrupted SD ### What is the base image that you installed on the SD card? ( eg: NextCloudPi_07-21-17 ) +You can discover this by executing + +``` +cat /usr/local/etc/ncp-baseimage +``` + ### Expected behavior ### Actual behaviour diff --git a/nextcloudpi.sh b/nextcloudpi.sh index 832f6e10..ab644b02 100644 --- a/nextcloudpi.sh +++ b/nextcloudpi.sh @@ -141,6 +141,9 @@ EOF # Optional packets for Nextcloud and Apps $APTINSTALL -o "Dpkg::Options::=--force-confold" php-smbclient $APTINSTALL postfix + + # tag image + echo "NextCloudPi_$( date "+%m-%d-%y" )" > /usr/local/etc/ncp-baseimage } configure() { :; } @@ -142,6 +142,9 @@ EOF sudo -u www-data php $OCC config:system:set mail_domain --value="ownyourbits.com" } +# images are now tagged +test -f /usr/local/etc/ncp-baseimage || echo "untagged" > /usr/local/etc/ncp-baseimage + # restart PHP to get updates in the ncp-web # FIXME: php doesn't come up if run from ncp-web #( |