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>2018-06-18 15:50:03 +0300
committernachoparker <nacho@ownyourbits.com>2018-06-18 17:19:25 +0300
commit7ac184752e96d098bb87767c26f1313323fbe961 (patch)
tree894945ab37cafc6b0d2017623bc6145224096b6a
parenta4fb4f70e7534d3365a803a7dd0453203337ff79 (diff)
docker: replace systemd for servicev0.57.1
-rw-r--r--changelog.md6
-rw-r--r--etc/ncp-config.d/nc-limits.sh10
-rw-r--r--etc/ncp-config.d/nc-nextcloud.sh8
-rw-r--r--etc/ncp-config.d/nc-restore.sh8
4 files changed, 17 insertions, 15 deletions
diff --git a/changelog.md b/changelog.md
index 665f4711..31744c75 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,11 +1,13 @@
-[v0.57.0](https://github.com/nextcloud/nextcloudpi/commit/2591f25) (2018-06-18) update to NC 13.0.4
+[v0.57.1](https://github.com/nextcloud/nextcloudpi/commit/5483031) (2018-06-18) nc-limits: replace systemd for service
+
+[v0.57.0](https://github.com/nextcloud/nextcloudpi/commit/ef5839d) (2018-06-18) update to NC 13.0.4
[v0.56.25](https://github.com/nextcloud/nextcloudpi/commit/fe16326) (2018-06-18) nc-snapshot-sync: upgrade
[v0.56.24](https://github.com/nextcloud/nextcloudpi/commit/16ce683) (2018-06-18) nc-datadir: make sure we have the correct permissions
-[v0.56.23, master](https://github.com/nextcloud/nextcloudpi/commit/0a047a1) (2018-06-18) nc-info: fix typo
+[v0.56.23](https://github.com/nextcloud/nextcloudpi/commit/0a047a1) (2018-06-18) nc-info: fix typo
[v0.56.22](https://github.com/nextcloud/nextcloudpi/commit/96e9f20) (2018-06-14) nc-restore: fix redis restart in docker
diff --git a/etc/ncp-config.d/nc-limits.sh b/etc/ncp-config.d/nc-limits.sh
index 8a7386b8..defced0f 100644
--- a/etc/ncp-config.d/nc-limits.sh
+++ b/etc/ncp-config.d/nc-limits.sh
@@ -30,16 +30,16 @@ configure()
# need to restart php
bash -c " sleep 3
- systemctl stop php7.0-fpm
- systemctl stop mysqld
+ service php7.0-fpm stop
+ service mysqld stop
sleep 0.5
- systemctl start php7.0-fpm
- systemctl start mysqld
+ service php7.0-fpm start
+ service mysqld start
" &>/dev/null &
# redis max memory
sed -i "s|maxmemory .*|maxmemory $REDISMEM_|" /etc/redis/redis.conf
- systemctl restart redis
+ service redis restart
}
install() { :; }
diff --git a/etc/ncp-config.d/nc-nextcloud.sh b/etc/ncp-config.d/nc-nextcloud.sh
index 9b3a11fd..91e36583 100644
--- a/etc/ncp-config.d/nc-nextcloud.sh
+++ b/etc/ncp-config.d/nc-nextcloud.sh
@@ -73,11 +73,11 @@ install()
systemctl enable redis-server
# need to restart php
- systemctl stop php7.0-fpm
- systemctl stop mysqld
+ service php7.0-fpm stop
+ service mysqld stop
sleep 0.5
- systemctl start php7.0-fpm
- systemctl start mysqld
+ service php7.0-fpm start
+ service mysqld start
}
# service to randomize passwords on first boot
diff --git a/etc/ncp-config.d/nc-restore.sh b/etc/ncp-config.d/nc-restore.sh
index d0ec3ddb..044811ae 100644
--- a/etc/ncp-config.d/nc-restore.sh
+++ b/etc/ncp-config.d/nc-restore.sh
@@ -158,11 +158,11 @@ bash /usr/local/bin/nextcloud-domain.sh
# restart PHP if needed
[[ "$NEED_RESTART" == "1" ]] && \
bash -c " sleep 3
- systemctl stop php7.0-fpm
- systemctl stop mysqld
+ service php7.0-fpm stop
+ service mysqld stop
sleep 0.5
- systemctl start php7.0-fpm
- systemctl start mysqld
+ service php7.0-fpm start
+ service mysqld start
" &>/dev/null &
EOF
chmod +x /usr/local/bin/ncp-restore