Skip to content

Commit c4060e1

Browse files
postinst modified
1 parent 18d6cfc commit c4060e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/Debian/common/DEBIAN/postinst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ SSL_NAME="foglamp"
3232
SSL_DAYS="365"
3333

3434
link_update_task() {
35+
echo "Changing setuid of update_task.apt"
3536
chmod u+s /usr/local/foglamp/bin/update_task.apt
36-
rm /usr/local/foglamp/scripts/tasks/update 2> /dev/null
37+
echo "Removing task/update"
38+
[ -e /usr/local/foglamp/scripts/tasks/update ] && rm /usr/local/foglamp/scripts/tasks/update
39+
echo "Create link file"
3740
ln -s /usr/local/foglamp/bin/update_task.apt /usr/local/foglamp/scripts/tasks/update
3841
}
3942

0 commit comments

Comments
 (0)