Skip to content

Commit

Permalink
Merge pull request #31 from krishaweb/development
Browse files Browse the repository at this point in the history
Update mysql command line interface in shell script
  • Loading branch information
girishpanchal30 authored Jul 25, 2023
2 parents 14ce897 + 6d4fab0 commit 374451a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 28 deletions.
1 change: 1 addition & 0 deletions LAMP-with-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ sudo systemctl start mysql.service

# Please use following command to set root password for the MYSQL.
# sudo mysql
sudo mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Root@1234';FLUSH PRIVILEGES;exit;"
# ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Root@1234';
# flush privileges;
# exit;
Expand Down
35 changes: 7 additions & 28 deletions LEMP-with-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ sudo systemctl start mysql.service
# sudo mysql_secure_installation

# Please use following command to set root password for the MYSQL.
# sudo mysql
sudo mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Root@1234';FLUSH PRIVILEGES;exit;"
# ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Root@1234';
# flush privileges;
# exit;
Expand Down Expand Up @@ -75,18 +75,18 @@ server {
}" > my_site
sudo ln -s /etc/nginx/sites-available/my_site /etc/nginx/sites-enabled/
# Unlink default config
#sudo unlink /etc/nginx/sites-enabled/default
# sudo unlink /etc/nginx/sites-enabled/default
sudo systemctl reload nginx

# Install postgres database.
sudo apt update
sudo apt upgrade -y
sudo apt install postgresql postgresql-client -y
sudo systemctl enable postgresql.service
# sudo apt update
# sudo apt upgrade -y
# sudo apt install postgresql postgresql-client -y
# sudo systemctl enable postgresql.service
# sudo su -l postgres
# psql -c "alter user postgres with password 'Root@1234'";
# exit;
sudo service postgresql restart
# sudo service postgresql restart

# Give a www-data ownership to www directory
# echo -e "\n\n Ownership for /var/www\n"
Expand Down Expand Up @@ -174,27 +174,6 @@ echo 'export PATH=$HOME/.config/composer/vendor/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
phpcs -i

# install_wpcli() {
# curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
# php wp-cli.phar --info
# chmod +x wp-cli.phar
# sudo mv wp-cli.phar /usr/local/bin/wp
# wp --info
# echo "\e[1;42m WP CLI install successfully \e[0m"
# }

# while true; do

# read -p "Do you want to install WP CLI for WordPress (y/n) " yn

# case $yn in
# [yY] )
# install_wpcli
# break;;
# [nN] ) echo "\e[1;41m No \e[0m"
# exit;;
# esac

# Install Dukto
echo -e "\n\nInstalling Dukto\n"
sudo add-apt-repository ppa:xuzhen666/dukto
Expand Down

0 comments on commit 374451a

Please sign in to comment.