Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-09-08 11:12:25 +0300
committernachoparker <nacho@ownyourbits.com>2017-09-08 11:14:15 +0300
commit82d72e9759a37130519e34b6620b2fae37ae5d38 (patch)
tree48662ec6fab5abdb1167ed86eed7cd4233d0fc01
parent4a0a1824cc0808b84845c0910e470c80d5503334 (diff)
tag imagesv0.26.21
-rw-r--r--.github/issue_template.md6
-rw-r--r--nextcloudpi.sh3
-rwxr-xr-xupdate.sh3
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() { :; }
diff --git a/update.sh b/update.sh
index 87011a1a..6dae267e 100755
--- a/update.sh
+++ b/update.sh
@@ -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
#(