#!/usr/bin/env bash

# Passwords App Settings
/var/www/html/occ app:enable passwords;
/var/www/html/occ config:app:set passwords service/favicon/bi/url --value=http://passwords-iconserver:7070/icon;
/var/www/html/occ config:app:set passwords service/favicon --value=bi;
/var/www/html/occ config:app:set passwords service/preview --value=pageres;
/var/www/html/occ config:app:set passwords performance --value=6;

# System Settings
/var/www/html/occ app:disable firstrunwizard;
/var/www/html/occ config:system:set loglevel --value=0 --type=int;
/var/www/html/occ config:system:set defaultapp --value=passwords --type=string;
/var/www/html/occ config:system:set trusted_domains 0 --value=localhost --type=string;
/var/www/html/occ config:system:set allow_local_remote_servers --value=true --type=bool;
/var/www/html/occ config:system:set trusted_domains 1 --value=passwords.local --type=string;
/var/www/html/occ config:system:set overwrite.cli.url --value=https://localhost --type=string;
/var/www/html/occ config:system:set preview_imaginary_url --value=http://passwords-imaginary:9000/ --type=string;
/var/www/html/occ config:system:set preview_imaginary_key --value=passwords --type=string;
/var/www/html/occ config:system:set default_phone_region --value=DE --type=string;