Skip to content

Commit 18d6cfc

Browse files
Set setuid flag for update_task.apt and remove link file before creating a new link
1 parent 4ebdf70 commit 18d6cfc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/Debian/common/DEBIAN/postinst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ SSL_NAME="foglamp"
3232
SSL_DAYS="365"
3333

3434
link_update_task() {
35+
chmod u+s /usr/local/foglamp/bin/update_task.apt
36+
rm /usr/local/foglamp/scripts/tasks/update 2> /dev/null
3537
ln -s /usr/local/foglamp/bin/update_task.apt /usr/local/foglamp/scripts/tasks/update
3638
}
3739

0 commit comments

Comments
 (0)