mirror of
https://github.com/LibreOffice/online.git
synced 2025-07-20 16:47:12 +00:00
systemplate files are not writable by lool user
See also f1be65668c
systemplate files should not be writable by lool user
Change-Id: I5684248d3d4b4b0ba56f8c5ab490a6e7df0e0038
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98069
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Jenkins
Reviewed-by: Andras Timar <andras.timar@collabora.com>
This commit is contained in:
2
debian/loolwsd.postinst.in
vendored
2
debian/loolwsd.postinst.in
vendored
@ -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
|
||||
;;
|
||||
|
||||
|
@ -364,7 +364,7 @@ int Config::main(const std::vector<std::string>& 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;
|
||||
|
||||
|
Reference in New Issue
Block a user