| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- #!/bin/bash
- # info: restore user
- # options: user backup
- #
- # The function for resotring user from backup.
- #----------------------------------------------------------#
- # Variable&Function #
- #----------------------------------------------------------#
- # Argument defenition
- user=$1
- backup=$2
- # Includes
- source $VESTA/conf/vesta.conf
- source $VESTA/func/main.sh
- source $VESTA/func/domain.sh
- source $VESTA/func/db.sh
- #----------------------------------------------------------#
- # Verifications #
- #----------------------------------------------------------#
- #----------------------------------------------------------#
- # Action #
- #----------------------------------------------------------#
- #----------------------------------------------------------#
- # Vesta #
- #----------------------------------------------------------#
- # Logging
- log_event "$OK" "$EVENT"
- exit
|