bug fix
This commit is contained in:
+7
-2
@@ -153,6 +153,7 @@ echo -e "Installing Composer"
|
|||||||
sleep 3
|
sleep 3
|
||||||
export COMPOSER_HOME=/usr/local/composer
|
export COMPOSER_HOME=/usr/local/composer
|
||||||
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
|
ln -sf /usr/local/bin/composer /usr/bin/composer
|
||||||
composer about
|
composer about
|
||||||
echo -e "Composer installed"
|
echo -e "Composer installed"
|
||||||
|
|
||||||
@@ -167,12 +168,14 @@ echo -e "Installing Drush and DrupalConsole"
|
|||||||
sleep 3
|
sleep 3
|
||||||
curl https://drupalconsole.com/installer -L -o /usr/local/bin/drupal
|
curl https://drupalconsole.com/installer -L -o /usr/local/bin/drupal
|
||||||
chmod +x /usr/local/bin/drupal
|
chmod +x /usr/local/bin/drupal
|
||||||
|
ln -sf /usr/local/bin/drupal /usr/bin/drupal
|
||||||
drupal about
|
drupal about
|
||||||
# curl https://github.com/drush-ops/drush-launcher/releases/download/0.6.0/drush.phar -L -o /usr/local/bin/drush
|
# curl https://github.com/drush-ops/drush-launcher/releases/download/0.6.0/drush.phar -L -o /usr/local/bin/drush
|
||||||
wget -O /usr/local/bin/drush https://github.com/drush-ops/drush-launcher/releases/latest/download/drush.phar
|
wget -O /usr/local/bin/drush https://github.com/drush-ops/drush-launcher/releases/latest/download/drush.phar
|
||||||
chmod +x /usr/local/bin/drush
|
chmod +x /usr/local/bin/drush
|
||||||
|
ln -sf /usr/local/bin/drush /usr/bin/drush
|
||||||
echo -e "Drush and DrupalConsoleinstalled"
|
drush status
|
||||||
|
echo -e "Drush and DrupalConsole installed"
|
||||||
|
|
||||||
# for non composer installed D7 site add assets/d7-drush-composer.json in root-folder/composer.json and run composer install
|
# for non composer installed D7 site add assets/d7-drush-composer.json in root-folder/composer.json and run composer install
|
||||||
|
|
||||||
@@ -193,6 +196,8 @@ chown -R www:www /var/lib/nginx
|
|||||||
chown -R www:www /var/www/html
|
chown -R www:www /var/www/html
|
||||||
chown -R www:www /var/tmp/nginx
|
chown -R www:www /var/tmp/nginx
|
||||||
|
|
||||||
|
sed -i "s|user nginx;|user www;|i" /etc/nginx/nginx.conf
|
||||||
|
|
||||||
mv /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.ori
|
mv /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.ori
|
||||||
cp "$_assets"/lemp/default.nginxconf /etc/nginx/conf.d/default.conf
|
cp "$_assets"/lemp/default.nginxconf /etc/nginx/conf.d/default.conf
|
||||||
cp "$_assets"/lemp/index.php /var/www/html/
|
cp "$_assets"/lemp/index.php /var/www/html/
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ adduser "$user"
|
|||||||
|
|
||||||
sed -i "s/$user:\/bin\/ash/$user:\/bin\/bash/g" /etc/passwd
|
sed -i "s/$user:\/bin\/ash/$user:\/bin\/bash/g" /etc/passwd
|
||||||
|
|
||||||
|
usermod -a -G www "$user"
|
||||||
|
|
||||||
# TODO limiting su to the admin group
|
# TODO limiting su to the admin group
|
||||||
yn="reset"
|
yn="reset"
|
||||||
while [ "$yn" != "y" ] && [ "$yn" != "n" ]
|
while [ "$yn" != "y" ] && [ "$yn" != "n" ]
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ echo -e '
|
|||||||
/_/ \_\_| .__/_|_||_\___| |____|___|_| |_|_|
|
/_/ \_\_| .__/_|_||_\___| |____|___|_| |_|_|
|
||||||
|_|
|
|_|
|
||||||
'
|
'
|
||||||
|
# https://wiki.alpinelinux.org/wiki/Alpine_setup_scripts
|
||||||
|
|
||||||
echo -e "\033[35;1mThis script has been tested only on Alpine Linux \033[0m"
|
echo -e "\033[35;1mThis script has been tested only on Alpine Linux \033[0m"
|
||||||
|
|
||||||
. bin/checkroot.sh
|
. bin/checkroot.sh
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Install web server and secure it on alpine linux 3.9
|
# Install web server and secure it on alpine linux 3.12
|
||||||
|
|
||||||
## Branches
|
## Branches
|
||||||
each alpine linux stable release has it's branch (master is a clone of the last one)
|
each alpine linux stable release has it's branch (master is a clone of the last one)
|
||||||
|
|||||||
Reference in New Issue
Block a user