improved webhook install, mysql comment innodb_buffer_pool_size
This commit is contained in:
parent
62c03fc009
commit
cdcb034b6b
@ -1,7 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# update bare repos
|
# update bare repos
|
||||||
git --git-dir=git-repositories/DOMAIN.git fetch origin prod:prod
|
echo "Updating bare repos"
|
||||||
|
su -c "git --git-dir=git-repositories/DOMAIN.git fetch origin prod:prod" USER
|
||||||
# deploy prod
|
# deploy prod
|
||||||
cd www/DOMAIN/
|
cd www/DOMAIN/
|
||||||
./deploy.sh
|
su -c "./deploy.sh" USER
|
||||||
|
@ -126,6 +126,9 @@ if [ "$installmysql" = "yes" ]; then
|
|||||||
|
|
||||||
cp "$_assets"/mysql/innodb-file-per-table.cnf /etc/mysql/conf.d/
|
cp "$_assets"/mysql/innodb-file-per-table.cnf /etc/mysql/conf.d/
|
||||||
|
|
||||||
|
# you may increase memory
|
||||||
|
# innodb_buffer_pool_size = 1024M
|
||||||
|
|
||||||
systemctl enable mariadb.service
|
systemctl enable mariadb.service
|
||||||
systemctl restart mariadb.service
|
systemctl restart mariadb.service
|
||||||
echo -e "\033[92;1mmysql installed\033[Om"
|
echo -e "\033[92;1mmysql installed\033[Om"
|
||||||
|
@ -92,6 +92,7 @@ git --git-dir=/home/"$user"/git-repositories/"$_domain.git" remote add origin "$
|
|||||||
# hook deploy script
|
# hook deploy script
|
||||||
cp -f "$_assets"/webhook-deploy.sh /home/"$user"/webhook-deploy-"$_id".sh
|
cp -f "$_assets"/webhook-deploy.sh /home/"$user"/webhook-deploy-"$_id".sh
|
||||||
sed -i -r "s/DOMAIN/$_domain/g" /home/"$user"/webhook-deploy-"$_id".sh
|
sed -i -r "s/DOMAIN/$_domain/g" /home/"$user"/webhook-deploy-"$_id".sh
|
||||||
|
sed -i -r "s/USER/$user/g" /home/"$user"/webhook-deploy-"$_id".sh
|
||||||
chowm $user:$user /home/"$user"/webhook-deploy-"$_id".sh
|
chowm $user:$user /home/"$user"/webhook-deploy-"$_id".sh
|
||||||
chmod +x /home/"$user"/webhook-deploy-"$_id".sh
|
chmod +x /home/"$user"/webhook-deploy-"$_id".sh
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user