Package: openguides
Version: 0.74-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: shell-fallout
In base-passwd 3.5.30, I changed www-data's shell to /usr/sbin/nologin
(a change that I really should have made about ten years ago). This has
unfortunately had a bit of collateral damage: openguides' wiki-toolkit
upgrade hook will fail because it tries to use "su www-data" without
overriding the shell. Here's a fix:
* Pass "-s /bin/sh" to "su www-data" to cope with the change of www-data's
shell in base-passwd 3.5.30.
diff -Nru openguides-0.74/debian/wiki-toolkit-upgrade-hooks/openguides
openguides-0.74/debian/wiki-toolkit-upgrade-hooks/openguides
--- openguides-0.74/debian/wiki-toolkit-upgrade-hooks/openguides
2013-08-27 23:42:47.000000000 +0100
+++ openguides-0.74/debian/wiki-toolkit-upgrade-hooks/openguides
2014-01-09 12:34:06.000000000 +0000
@@ -4,5 +4,5 @@
for file in `ls /etc/openguides/*/wiki.conf`; do
echo "Processing config file $file ...";
- su -c "/usr/bin/openguides-setup-db $file" www-data;
+ su -s /bin/sh -c "/usr/bin/openguides-setup-db $file" www-data;
done
Thanks,
--
Colin Watson [[email protected]]
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]