Skip to content

Commit

Permalink
reset ftp server settings on boot
Browse files Browse the repository at this point in the history
  • Loading branch information
outdoorbits committed Mar 2, 2025
1 parent e4f77ad commit fca3482
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions scripts/backup-autorun.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import lib_display
import lib_git
import lib_language
import lib_proftpd
import lib_setup
import lib_storage

Expand Down Expand Up @@ -139,6 +140,9 @@ def __cleanup_at_boot(self):
# remove mountpoints
lib_storage.remove_all_mountpoints(self.__setup)

# reset proftpd
lib_proftpd.proftpd().setDefaultRoot()

def __display_hello(self):
if self.__setup.get_val('conf_DISP_COLOR_MODEL') == '1':
self.__display.message(['set:time=2', f':IMAGE={self.WORKING_DIR}/little-backup-box.bmp'])
Expand Down
1 change: 0 additions & 1 deletion scripts/lib_proftpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ def ftpservice(self, job, config_changed=True):
if job == 'restart':
# proftpd running?
command = ['sudo', 'service', 'proftpd', 'status']

try:
proftpd_active = 'Active: active (running)' in subprocess.check_output(command).decode()
except:
Expand Down

0 comments on commit fca3482

Please sign in to comment.