This commit is contained in:
Bozhidar Slaveykov 2023-11-25 14:31:09 +02:00
parent 0bdd2aabac
commit 7bd7f0ded9
3 changed files with 18 additions and 0 deletions

View file

@ -32,6 +32,8 @@ sudo mv $PACKAGE_MAIN_DIR/usr/local/alphax/nginx/sbin/nginx $PACKAGE_MAIN_DIR/us
# Copy debian package META file # Copy debian package META file
sudo cp $MAIN_DIR/control $PACKAGE_MAIN_DIR/DEBIAN sudo cp $MAIN_DIR/control $PACKAGE_MAIN_DIR/DEBIAN
sudo cp $MAIN_DIR/postinst $PACKAGE_MAIN_DIR/DEBIAN
sudo cp $MAIN_DIR/postrm $PACKAGE_MAIN_DIR/DEBIAN
# Copy ALPHAX series files # Copy ALPHAX series files
sudo cp $MAIN_DIR/alphax $PACKAGE_MAIN_DIR/etc/init.d/alphax sudo cp $MAIN_DIR/alphax $PACKAGE_MAIN_DIR/etc/init.d/alphax

View file

@ -0,0 +1,11 @@
#!/bin/bash
set -e
if [ "$1" != "configure" ]; then
exit 0
fi
# Touch and set permisions on default log files on installation
update-rc.d alphax defaults > /dev/null
invoke-rc.d alphax start || true

View file

@ -0,0 +1,5 @@
#!/bin/sh
update-rc.d alphax remove > /dev/null 2>&1
exit 0