Skip to content

Commit 4ebdf70

Browse files
FOGL-1812 - Update API's to allow installation via apt update
1 parent 8cb79b9 commit 4ebdf70

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/Debian/common/DEBIAN/postinst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ set -e
3131
SSL_NAME="foglamp"
3232
SSL_DAYS="365"
3333

34+
link_update_task() {
35+
ln -s /usr/local/foglamp/bin/update_task.apt /usr/local/foglamp/scripts/tasks/update
36+
}
37+
3438
copy_service_file() {
3539
cp /usr/local/foglamp/extras/scripts/foglamp.service /etc/init.d/foglamp
3640
}
@@ -107,6 +111,9 @@ set_files_ownership
107111
# Call FogLAMP package update script
108112
call_package_update_script
109113

114+
echo "Linking update task"
115+
link_update_task
116+
110117
echo "Enabling FogLAMP service"
111118
enable_foglamp_service
112119
echo "Starting FogLAMP service"

0 commit comments

Comments
 (0)