PHP Deployment Scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
neatoDeploy/make-installer.sh

21 lines
619 B

#!/bin/bash
pushd build
/usr/bin/php -c neato_php_cli_phar.ini -f compile-phar.php
chmod +x install_neato.sh
TAR_FILE=neato_deploy.tar.gz
tar -czvf $TAR_FILE install_neato.sh make-sums.sh neatoDeploy.phar neato_deploy_php_cli.ini neato_deploy.sh ../config_files/deploy_*.php
EXIT_COMMAND="./install_neato.sh"
SELF_EXTRACTABLE="$TAR_FILE.self"
echo '#!/bin/bash' > $SELF_EXTRACTABLE
echo 'dd bs=1 skip=`head -3 $0 | wc -c` if=$0 | gunzip -c | tar -x' >> $SELF_EXTRACTABLE
echo "$EXIT_COMMAND; exit" >> $SELF_EXTRACTABLE
cat $TAR_FILE >> $SELF_EXTRACTABLE
chmod a+x $SELF_EXTRACTABLE
mv $SELF_EXTRACTABLE ..
popd