Skip to content

Commit 231d766

Browse files
committed
Rename .env to env in backup for visibility
- Save .env file as 'env' in backup zip to make it visible without showing hidden files - Users need to rename it back to .env when restoring
1 parent ae383fb commit 231d766

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

panel/app/telegram_bot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,8 @@ async def create_backup(self) -> Optional[str]:
517517
break
518518

519519
if env_file:
520-
shutil.copy2(env_file, backup_dir / ".env")
520+
# Use 'env' instead of '.env' to make it visible (not hidden)
521+
shutil.copy2(env_file, backup_dir / "env")
521522
logger.info(f"Backed up .env from: {env_file}")
522523

523524
# Find and backup docker-compose.yml

0 commit comments

Comments
 (0)