diff --git a/scripts/install b/scripts/install index 6e4bfe0..753b5a5 100755 --- a/scripts/install +++ b/scripts/install @@ -100,6 +100,9 @@ ynh_script_progression --message="Installing Composer and dependencies..." ynh_install_composer --phpversion="$phpversion" --workdir="$final_path" +# Install missing icons +git clone https://github.com/matomo-org/matomo-icons.git "$final_path/plugins/Morpheus/icons" --quiet + #================================================= # SETUP A CRON #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 944cf8a..1a988b9 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -139,6 +139,15 @@ if [[ -f "$final_path/config/config.ini.php" ]]; then ynh_exec_as $app ./console core:update fi +#================================================= +# INSRALL MISSING ICONS +#================================================= + +if [ ! "$(ls -A "$final_path/plugins/Morpheus/icons")" ] +then + git clone https://github.com/matomo-org/matomo-icons.git "$final_path/plugins/Morpheus/icons" --quiet +fi + #================================================= # SETUP A CRON #=================================================