diff --git a/debian/loolwsd.postinst.in b/debian/loolwsd.postinst.in index ac38e2ab11..05e0c02f98 100644 --- a/debian/loolwsd.postinst.in +++ b/debian/loolwsd.postinst.in @@ -28,7 +28,7 @@ case "$1" in loolwsd-generate-proof-key >/dev/null 2>&1 cat << EOF > /etc/apt/apt.conf.d/25loolwsd // Rebuild systemplate of @APP_NAME@ -DPkg::Post-Invoke { "echo Updating loolwsd systemplate;su lool --shell=/bin/sh -c 'loolwsd-systemplate-setup /opt/lool/systemplate @LO_PATH@ >/dev/null 2>&1'"; }; +DPkg::Post-Invoke { "echo Updating loolwsd systemplate;loolwsd-systemplate-setup /opt/lool/systemplate @LO_PATH@ >/dev/null 2>&1"; }; EOF ;; diff --git a/tools/Config.cpp b/tools/Config.cpp index 9c40939101..4bf297fb60 100644 --- a/tools/Config.cpp +++ b/tools/Config.cpp @@ -364,7 +364,7 @@ int Config::main(const std::vector& args) } else if (args[0] == "update-system-template") { - const char command[] = "su lool --shell=/bin/sh -c 'loolwsd-systemplate-setup /opt/lool/systemplate " LO_PATH " >/dev/null 2>&1'"; + const char command[] = "loolwsd-systemplate-setup /opt/lool/systemplate " LO_PATH " >/dev/null 2>&1"; std::cout << "Running the following command:" << std::endl << command << std::endl;