Last active
December 20, 2015 20:09
-
-
Save yankcrime/6188480 to your computer and use it in GitHub Desktop.
ownCloud start.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
HOSTLINE=$(echo $(ip -f inet addr show eth0 | grep 'inet' | awk '{ print $2 }' | cut -d/ -f1) $(hostname) $(hostname -s)) | |
sed -i "s/^172.*/$HOSTLINE/" /etc/hosts | |
/usr/sbin/mysqld & | |
/usr/sbin/apache2ctl -D FOREGROUND |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment