Skip to content

Commit

Permalink
tag images
Browse files Browse the repository at this point in the history
  • Loading branch information
nacho committed Sep 8, 2017
1 parent fb900b8 commit 64e878d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions nextcloudpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() { :; }
Expand Down
3 changes: 3 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
#(
Expand Down

0 comments on commit 64e878d

Please sign in to comment.