filebot/installer/spk/scripts/postinst

16 lines
415 B
Plaintext
Raw Normal View History

#!/bin/sh
# allow read/write in application home folder
2014-08-03 07:30:41 +00:00
mkdir -m 777 "$SYNOPKG_PKGDEST/data"
chown -R admin.users "$SYNOPKG_PKGDEST/data"
# create /usr/local/bin/[package] program link
2015-05-20 19:01:33 +00:00
mkdir -p "/usr/local/bin"
ln -sf "$SYNOPKG_PKGDEST/$SYNOPKG_PKGNAME.sh" "/usr/local/bin/$SYNOPKG_PKGNAME"
# create /usr/local/[package] link
ln -sf "$SYNOPKG_PKGDEST" "/usr/local/$SYNOPKG_PKGNAME"
# return successfully
exit 0