tag images

This commit is contained in:
nachoparker 2017-09-08 10:12:25 +02:00
parent 4a0a1824cc
commit 82d72e9759
3 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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() { :; }

View File

@ -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
#(