diff --git a/scripts/install b/scripts/install index 8f8f7d1..04c1e99 100755 --- a/scripts/install +++ b/scripts/install @@ -63,19 +63,27 @@ pushd $install_dir popd #================================================= -# GENERIC FINALIZATION +# APP INITIAL CONFIGURATION #================================================= -# START SYSTEMD SERVICE +# ADD A CONFIGURATION #================================================= +ynh_script_progression --message="Adding a configuration file..." --weight=1 + +mkdir -p /etc/motioneye +mkdir -p /var/lib/motioneye +ynh_add_config --template="../conf/motioneye.conf" --destination="/etc/motioneye/motioneye.conf" -# FIXME: this should be handled by the core in the future -# You may need to use chmod 600 instead of 400, -# for example if the app is expected to be able to modify its own config chown $app:$app "/etc/motioneye/" chown $app:$app "/var/lib/motioneye" chmod 664 "/etc/motioneye/" chmod 664 "/var/lib/motioneye" +#================================================= +# GENERIC FINALIZATION +#================================================= +# START SYSTEMD SERVICE +#================================================= + ynh_script_progression --message="Starting a systemd service..." --weight=1 # Start a systemd service