Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
Small fixes.
  • Loading branch information
QROkes committed Nov 24, 2024
1 parent 604619e commit 4ce833d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Webinoly provides a set of tools and commands that facilitate web server adminis
- Unique commands to create, delete, disable sites.
- Free SSL certificates for your sites with Let’s Encrypt and automatic server configuration.
- HTTP/3 dramatically increases the speed of serving your content.
- PHP v8.3 and support for earlier versions if needed (8.2, 8.1, 8.0 and 7.4).
- PHP 8.3 and support for earlier versions if needed (8.2, 8.1, 8.0 and 7.4) or the newest 8.4.
- FastCGI Cache and Redis Object Cache for your WordPress sites.
- Install WP in any subfolder and support for external databases, multisite and domain mapping.
- Reverse Proxy for any app (Java, React, Node, Angular, Vue, etc) or to use your own domain with any external file repo like S3.
Expand Down
27 changes: 14 additions & 13 deletions usr/stack
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,16 @@ purge_mysql_client() {
sudo rm -rf /etc/apt/sources.list.d/mariadb.list
fi

[[ $mysql != "keep-data" ]] && sudo rm -rf /etc/mysql
if [[ $mysql != "keep-data" ]]; then
sudo rm -rf /etc/mysql
sudo rm -rf /var/lib/mysql
sudo rm -rf /usr/share/mysql*
conf_delete mysql-root
conf_delete mysql-admin
echo "${gre}${dim}MySQL/MariaDB data succesffully removed!${end}"
else
echo "${blu}MySQL/MariaDB data was not removed.${end}"
fi

conf_write mysql-client purged
}
Expand Down Expand Up @@ -280,21 +289,13 @@ elif [[ -n $purge && -n $mysql ]]; then
sudo apt -y purge mariadb-server mariadb-common mysql-common
fi

# Keyrings and sources list removed in mysql-client!
# Keyrings and sources list removed in mysql-client! (purge_mysql_client)
# keep-data moved to mysql-client! (purge_mysql_client)

purge_mysql_client
purge_autoremove="true"

if [[ $mysql != "keep-data" ]]; then
#sudo rm -rf /etc/mysql # Removed in mysql-client
sudo rm -rf /var/lib/mysql
sudo rm -rf /usr/share/mysql*
conf_delete mysql-root
conf_delete mysql-admin
else
echo "${blu}MySQL/MariaDB data was not removed.${end}"
fi

conf_write mysql purged

echo ""
echo "${gre}MySQL/MariaDB has been deleted successfully! ${end}"
echo ""
Expand Down

0 comments on commit 4ce833d

Please sign in to comment.