summaryrefslogtreecommitdiff
path: root/package/electron-bin/files/electron-bin.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'package/electron-bin/files/electron-bin.postinst')
-rw-r--r--package/electron-bin/files/electron-bin.postinst6
1 files changed, 6 insertions, 0 deletions
diff --git a/package/electron-bin/files/electron-bin.postinst b/package/electron-bin/files/electron-bin.postinst
new file mode 100644
index 000000000..37857f7b2
--- /dev/null
+++ b/package/electron-bin/files/electron-bin.postinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+add_rcconf electron_bin NO
+gid=$(get_next_gid)
+add_group electron $gid
+add_user electron $(get_next_uid) $gid /opt/electron /bin/sh