-
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ncp-check-nc-version: dont notify the same version more than once
Signed-off-by: nachoparker <[email protected]>
- Loading branch information
1 parent
9e27660
commit 8a6c1c0
Showing
3 changed files
with
56 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
## BACKWARD FIXES ( for older images ) | ||
|
||
source /usr/local/etc/library.sh # sets NCLATESTVER PHPVER RELEASE | ||
|
||
# all images | ||
|
||
# we handle this ourselves now | ||
ncc app:disable updatenotification | ||
run_app nc-notify-updates | ||
|
||
# docker images only | ||
[[ -f /.docker-image ]] && { | ||
: | ||
} | ||
|
||
# for non docker images | ||
[[ ! -f /.docker-image ]] && { | ||
|
||
# make sure redis is up before running nextclud-domain | ||
cat > /usr/lib/systemd/system/nextcloud-domain.service <<'EOF' | ||
[Unit] | ||
Description=Register Current IP as Nextcloud trusted domain | ||
Requires=network.target | ||
After=mysql.service redis.service | ||
[Service] | ||
ExecStart=/bin/bash /usr/local/bin/nextcloud-domain.sh | ||
Restart=on-failure | ||
RestartSec=5s | ||
[Install] | ||
WantedBy=multi-user.target | ||
EOF | ||
} | ||
|
||
exit 0 |