Verified Commit 4947dd40 authored by Jan Pavlinec's avatar Jan Pavlinec
Browse files

fix: add fix for empty nextcloud config

parent 546eaa6b
......@@ -149,6 +149,11 @@ define Package/fix-nor-update/description
or rescue image. This fix updates it to the latest stable version.
endef
define Package/fix-nextcloud-conf/description
Nextcloud cron scripts accidently creates empty config.php file.
This fix test if config.php exist and is empty and then removes it.
endef
$(eval $(call FIX,sentinel-remove-invalid-firewall-rules,+firewall +uci))
$(eval $(call FIX,samba-migrate-to-samba4,+samba4-server +uci))
$(eval $(call FIX,updater-v65.0-alternatives-update,+updater-ng +uci,prerm))
......@@ -164,3 +169,4 @@ $(eval $(call FIX,edns-buffer-size,+resolver-conf +uci))
$(eval $(call FIX,dhparam-to-cagen,+uci +turris-cagen))
$(eval $(call FIX,pkglists-hardening-options,+pkglists +uci))
$(eval $(call FIX,nor-update,+turris-nor-update +turris-nor-update-firmware))
$(eval $(call FIX,nextcloud-conf))
#!/bin/sh
# Check if nextcloud config file is empty and remove it
if [ ! -s /srv/www/nextcloud/config/config.php ]; then
rm -f /srv/www/nextcloud/config/config.php
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment