Last active
May 15, 2017 08:36
-
-
Save forsvunnet/efaac4ca9c3130b54a7bde8d7145f163 to your computer and use it in GitHub Desktop.
Linode install procedure
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
echo "Installing web software" && \ | |
apt-get update \ | |
apt-get install \ | |
zip \ | |
git \ | |
zsh \ | |
mariadb-server apache2 php php-mbstring php-dom php-mcrypt libapache2-mod-php php-mysql \ | |
letsencrypt python-letsencrypt-apache \ | |
-y && \ | |
echo "Installing composer" && \ | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \ | |
php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \ | |
php composer-setup.php && \ | |
php -r "unlink('composer-setup.php');" && \ | |
mv composer.phar /usr/local/bin/composer && \ | |
echo "Installing /www-tools" && \ | |
git clone [email protected]:drivdigital/www-tools.git /www-tools && \ | |
echo "alias www-tools=/www-tools/www-tools" >> .zshrc && \ | |
cd /www-tools && \ | |
composer install && \ | |
echo "Adding git user" && \ | |
useradd git -U -s /bin/zsh && \ | |
echo "Enabling rewrites in apache" && \ | |
a2enmod rewrite && \ | |
cd ~ && echo "All done, please edit /etc/apache2/apache2.conf to allow overrides" | |
## Pause! Do this after everything else because oh-my-zsh switches to zsh | |
echo "Installing ZSH" && \ | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" && \ | |
sed -i 's/ZSH_THEME="robbyrussell"/ZSH_THEME="gianu"/g' .zshrc && \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment