mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
error if repo rclone.conf is not referenced in config.yml
This commit is contained in:
parent
1f9fb16844
commit
b6d6d46aeb
1 changed files with 2 additions and 0 deletions
|
|
@ -156,6 +156,8 @@ def update_remote_storage_with_rclone(
|
||||||
elif os.path.exists(EMBEDDED_RCLONE_CONF):
|
elif os.path.exists(EMBEDDED_RCLONE_CONF):
|
||||||
path = EMBEDDED_RCLONE_CONF # in this case, only for display
|
path = EMBEDDED_RCLONE_CONF # in this case, only for display
|
||||||
configfilename = EMBEDDED_RCLONE_CONF
|
configfilename = EMBEDDED_RCLONE_CONF
|
||||||
|
if not rclone_config:
|
||||||
|
raise FDroidException(_("'rclone_config' must be set in config.yml!"))
|
||||||
else:
|
else:
|
||||||
configfilename = None
|
configfilename = None
|
||||||
output = subprocess.check_output(['rclone', 'config', 'file'], text=True)
|
output = subprocess.check_output(['rclone', 'config', 'file'], text=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue