update
This commit is contained in:
parent
0bdd2aabac
commit
7bd7f0ded9
3 changed files with 18 additions and 0 deletions
|
@ -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
|
||||||
|
|
11
compilators/debian/nginx/postinst
Normal file
11
compilators/debian/nginx/postinst
Normal 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
|
5
compilators/debian/nginx/postrm
Normal file
5
compilators/debian/nginx/postrm
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
update-rc.d alphax remove > /dev/null 2>&1
|
||||||
|
|
||||||
|
exit 0
|
Loading…
Reference in a new issue