regenconf: remove unecessary/inconsistent check that script is ran as root...

This commit is contained in:
Alexandre Aubin 2024-02-03 18:42:08 +01:00
parent 41da1daf02
commit ce529107be
3 changed files with 0 additions and 12 deletions

View file

@ -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

View file

@ -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 ""

View file

@ -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