This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Hiển thị prompt để nhập tên site | |
| read -p "Enter site name: " SITE_NAME | |
| # Kiểm tra xem người dùng có nhập tên không | |
| if [ -z "$SITE_NAME" ]; then | |
| echo "Site name cannot be empty. Exiting." | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ========================== | |
| # One-Click WordPress Site Deletion Script (WP-CLI only, safe) | |
| # ========================== | |
| # --- Set default PATH for WP-CLI and PHP --- | |
| DEFAULT_PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
| export PATH="$DEFAULT_PATH:$PATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ========================== | |
| # One-Click WordPress Script for Xubuntu/Thunar | |
| # ========================== | |
| # --- Set default PATH for WP-CLI and PHP --- | |
| DEFAULT_PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" | |
| export PATH="$DEFAULT_PATH:$PATH" |