[Unit]
Description=A simple apk downloader
After=network.target
Requires=network.target

[Service]
Type=oneshot
ExecStart={{ fdroid_utils_dir }}/apk-dl {{ fdroid_base_dir }}/apklist {{ fdroid_repo_dir }}/repo {{ fdroid_base_dir }}/gplaycli.conf
WorkingDirectory={{ fdroid_repo_dir }}
User={{ fdroid_user }}

# Optional security settings
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
NoNewPrivileges=true
ReadWritePaths={{ fdroid_repo_dir }}

[Install]
WantedBy=multi-user.target
