diff --git a/conf/user.css.example b/conf/user.css.example new file mode 100644 index 0000000..5b8bba5 --- /dev/null +++ b/conf/user.css.example @@ -0,0 +1,23 @@ +/* Disable the 'zoom' animation while browsing pictures */ +#imageview #image { + transition: none !important; + animation-name: none !important; + animation-duration: 0 !important; +} + +/* Hide smart albums */ +/* +[data-id="0"] { display:none; } +[data-id="s"] { display:none; } +[data-id="f"] { display:none; } +[data-id="r"] { display:none; } +*/ + +/* Make the diadnostic font bigger */ +.settings_view p, .settings_view a, .settings_view input, +.sharing_view p, .sharing_view a, .sharing_view input, .sharing_view option, +.users_view p, .users_view a, .users_view input, .users_view option, +.logs_diagnostics_view pre { + font-size: 12pt; + line-height: 14pt; +} \ No newline at end of file diff --git a/scripts/_common.sh b/scripts/_common.sh index f940aae..4d0da3d 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -62,7 +62,7 @@ ynh_install_composer () { install_args="${install_args:-}" composerversion="${composerversion:-$YNH_COMPOSER_VERSION}" - curl -sS https://getcomposer.org/installer \ + curl -sS https://getcomposer.org/installer 2>&1 \ | COMPOSER_HOME="$workdir/.composer" \ php${phpversion} -- --quiet --install-dir="$workdir" --version=$composerversion \ || ynh_die "Unable to install Composer." diff --git a/scripts/install b/scripts/install index 33d3013..350030e 100755 --- a/scripts/install +++ b/scripts/install @@ -117,10 +117,15 @@ ynh_replace_string --match_string="__DB_PASS__" --replace_string="$db_pwd" --tar ynh_replace_string --match_string="__APP__" --replace_string="$app" --target_file="$final_path/.env" # setup application config -cd $final_path && php$phpversion artisan key:generate -n --force --env -cd $final_path && php$phpversion artisan migrate -n --force -cd $final_path && php$phpversion artisan config:clear -n -cd $final_path && php$phpversion artisan config:cache -n +pushd "$final_path" + php$phpversion artisan key:generate -n --force --env + php$phpversion artisan migrate -n --force + php$phpversion artisan config:clear -n + php$phpversion artisan config:cache -n +popd + +# Setup custom user.css file +cp ../conf/user.css.example $final_path/public/dist/user.css #================================================= # STORE THE CONFIG FILE CHECKSUM diff --git a/scripts/upgrade b/scripts/upgrade index 1d0067a..27c2064 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -118,14 +118,19 @@ ynh_install_composer ynh_exec_warn_less ynh_composer_exec --commands=\"dump-autoload\" -( cd $final_path && php$phpversion artisan migrate -n --force ) -( cd $final_path && php$phpversion artisan config:clear -n ) -( cd $final_path && php$phpversion artisan config:cache -n ) +pushd "$final_path" + php$phpversion artisan migrate -n --force + php$phpversion artisan config:clear -n + php$phpversion artisan config:cache -n +popd ynh_backup_if_checksum_is_different --file="$final_path/.env" # Recalculate and store the checksum of the file for the next upgrade. ynh_store_file_checksum --file="$final_path/.env" +# Setup custom user.css file +cp ../conf/user.css.example $final_path/public/dist/user.css + #================================================= # SECURE FILES AND DIRECTORIES #=================================================