Skip to content

Instantly share code, notes, and snippets.

@nrmmota

nrmmota/Makefile Secret

Last active August 29, 2015 13:57
Show Gist options
  • Save nrmmota/28e0d35a7dcebe2f48ed to your computer and use it in GitHub Desktop.
Save nrmmota/28e0d35a7dcebe2f48ed to your computer and use it in GitHub Desktop.
install:
cp vpncmd/vpncmd /usr/bin/
cp vpncmd/ham* /usr/bin/
cp -r vpnserver /usr/local/
chmod 755 vpnserver
cp vpnserver.init /etc/init.d/vpnserver
cp vpn_server.config /usr/local/vpnserver/
chmod 755 /etc/init.d/vpnserver
/sbin/chkconfig --add vpnserver
### adding install line here
cp script_i_want_to_add.sh /usr/bin
uninstall:
rm -rf /usr/local/vpnserver
#rm -f /etc/init.d/vpnserver
/sbin/chkconfig --del vpnserver
rm /usr/bin/hamco*
rm /usr/bin/vpncmd
### adding uninstall line here
rm /usr/bin/changevhub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment