Skip to content

Commit

Permalink
Update backup.sh
Browse files Browse the repository at this point in the history
Add `/opt/freedom/x-ui/db/` path for X-UI
  • Loading branch information
AC-Lover authored Aug 19, 2023
1 parent 81c8504 commit 1b119c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,11 @@ ACLover="marzban backup"
# ساخت فایل پشتیبانی برای نرم‌افزار X-UI و ذخیره آن در فایل ac-backup.zip
elif [[ "$xmh" == "x" ]]; then

if dbDir=$(find /etc -type d -iname "x-ui*" -print -quit); then
if dbDir=$(find /etc /opt/freedom -type d -iname "x-ui*" -print -quit); then
echo "The folder exists at $dbDir"
if [[ $dbDir == *"/opt/freedom/x-ui"* ]]; then
dbDir="${dbDir}/db/"
fi
else
echo "The folder does not exist."
exit 1
Expand Down

0 comments on commit 1b119c9

Please sign in to comment.