mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-10 06:20:27 -04:00
30 lines
887 B
Plaintext
30 lines
887 B
Plaintext
######################################################################
|
|
# Define any package specific operations that shall be performed when
|
|
# the package is removed.
|
|
######################################################################
|
|
|
|
|
|
PKG_POST_REMOVE='{
|
|
rm "/usr/local/bin/filebot"
|
|
rm "/usr/local/filebot"
|
|
}'
|
|
|
|
|
|
######################################################################
|
|
# Define any package specific operations that shall be performed when
|
|
# the package is installed.
|
|
######################################################################
|
|
|
|
|
|
pkg_post_install(){
|
|
mkdir -m 777 "$SYS_QPKG_DIR/data"
|
|
chown -R admin.administrators "$SYS_QPKG_DIR/data"
|
|
|
|
# create /usr/local/bin/[package] program link
|
|
mkdir -p "/usr/local/bin"
|
|
ln -sf "$SYS_QPKG_DIR/filebot.sh" "/usr/local/bin/filebot"
|
|
|
|
# create /usr/local/[package] link
|
|
ln -sf "$SYS_QPKG_DIR" "/usr/local/filebot"
|
|
}
|