v-restore-user 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/bash
  2. # info: restore user
  3. # options: user backup
  4. #
  5. # The function for resotring user from backup.
  6. #----------------------------------------------------------#
  7. # Variable&Function #
  8. #----------------------------------------------------------#
  9. # Argument defenition
  10. user=$1
  11. backup=$2
  12. # Includes
  13. source $VESTA/conf/vesta.conf
  14. source $VESTA/func/main.sh
  15. source $VESTA/func/domain.sh
  16. source $VESTA/func/db.sh
  17. #----------------------------------------------------------#
  18. # Verifications #
  19. #----------------------------------------------------------#
  20. #----------------------------------------------------------#
  21. # Action #
  22. #----------------------------------------------------------#
  23. #----------------------------------------------------------#
  24. # Vesta #
  25. #----------------------------------------------------------#
  26. # Logging
  27. log_event "$OK" "$EVENT"
  28. exit