From ce529107be980ccf9182f2be6d3e78116f07cdd0 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 3 Feb 2024 18:42:08 +0100 Subject: [PATCH] regenconf: remove unecessary/inconsistent check that script is ran as root... --- hooks/conf_regen/01-yunohost | 4 ---- hooks/conf_regen/06-slapd | 4 ---- hooks/conf_regen/15-nginx | 4 ---- 3 files changed, 12 deletions(-) diff --git a/hooks/conf_regen/01-yunohost b/hooks/conf_regen/01-yunohost index 5799447c8..f792ac709 100755 --- a/hooks/conf_regen/01-yunohost +++ b/hooks/conf_regen/01-yunohost @@ -3,10 +3,6 @@ set -e do_init_regen() { - if [[ $EUID -ne 0 ]]; then - echo "You must be root to run this script" 1>&2 - exit 1 - fi cd /usr/share/yunohost/conf/yunohost diff --git a/hooks/conf_regen/06-slapd b/hooks/conf_regen/06-slapd index 9ba61863b..b44d9d649 100755 --- a/hooks/conf_regen/06-slapd +++ b/hooks/conf_regen/06-slapd @@ -8,10 +8,6 @@ config="/usr/share/yunohost/conf/slapd/config.ldif" db_init="/usr/share/yunohost/conf/slapd/db_init.ldif" do_init_regen() { - if [[ $EUID -ne 0 ]]; then - echo "You must be root to run this script" 1>&2 - exit 1 - fi do_pre_regen "" diff --git a/hooks/conf_regen/15-nginx b/hooks/conf_regen/15-nginx index e78b0f771..8143a0c90 100755 --- a/hooks/conf_regen/15-nginx +++ b/hooks/conf_regen/15-nginx @@ -7,10 +7,6 @@ set -e do_init_regen() { - if [[ $EUID -ne 0 ]]; then - echo "You must be root to run this script" 1>&2 - exit 1 - fi cd /usr/share/yunohost/conf/nginx