lemp and gitbarerepos

This commit is contained in:
Bachir Soussi Chiadmi 2023-12-21 09:53:56 +01:00
parent 8863d1ef79
commit 47b88ae300
2 changed files with 5 additions and 7 deletions

View File

@ -111,11 +111,11 @@ if [ "$vh" = "yes" ]; then
chmod +x post-receive # pre-receive chmod +x post-receive # pre-receive
# setup git repo on site folder # setup git repo on site folder
chown -R "$user":"$user" /home/"$user"/www/"$_domain"/public_html
cd /home/"$user"/www/"$_domain"/public_html cd /home/"$user"/www/"$_domain"/public_html
git init su -c "git init" $user
# link to the bare repo # link to the bare repo
git remote add origin /home/"$user"/git-repositories/"$_domain".git su -c "git remote add origin /home/$user/git-repositories/$_domain.git" $user
chown -R "$user":"$user" /home/"$user"/www/"$_domain"
cd "$_cwd" cd "$_cwd"

View File

@ -225,11 +225,9 @@ echo -e '\033[35m
/ /_/ / / / /_/ (__ ) / / / / /_/ / / / /_/ (__ ) / / /
/_____/_/ \__,_/____/_/ /_/ /_____/_/ \__,_/____/_/ /_/
\033[0m' \033[0m'
echo -e "\033[35;1mInstalling Drush and DrupalConsole\033[0m" echo -e "\033[35;1mInstalling Drush\033[0m"
sleep 3 sleep 3
curl https://drupalconsole.com/installer -L -o /usr/local/bin/drupal
chmod +x /usr/local/bin/drupal
# 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
echo -e "\033[92;1mDrush and DrupalConsoleinstalled\033[Om" echo -e "\033[92;1mDrush\033[Om"