mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
v-change-database-password-for-all-wordpress: Using existing password for $db_user
This commit is contained in:
parent
294c8ba516
commit
97e5fc0677
2 changed files with 25 additions and 2 deletions
|
@ -19,6 +19,8 @@ source $VESTA/func/main.sh
|
|||
# Action #
|
||||
#----------------------------------------------------------#
|
||||
|
||||
touch /root/remember-db-user-pass.txt
|
||||
|
||||
for user in $(grep '@' /etc/passwd |cut -f1 -d:); do
|
||||
if [ ! -f "/usr/local/vesta/data/users/$user/user.conf" ]; then
|
||||
continue;
|
||||
|
@ -33,6 +35,9 @@ for user in $(grep '@' /etc/passwd |cut -f1 -d:); do
|
|||
|
||||
done
|
||||
|
||||
# cat /root/remember-db-user-pass.txt
|
||||
rm /root/remember-db-user-pass.txt
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
#----------------------------------------------------------#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue