1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/overleaf_ynh.git synced 2024-09-03 19:56:27 +02:00

ynh_store_file_checksum

This commit is contained in:
Thomas 2024-02-13 13:54:12 +01:00 committed by GitHub
parent 41b30c5a30
commit a32d0de1c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 8 deletions

View file

@ -5,7 +5,6 @@
#================================================= #=================================================
nodejs_version=18.18.2 nodejs_version=18.18.2
JSON_FILE="$install_dir/build/server-ce/config/production.json"
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS

View file

@ -24,7 +24,6 @@ ynh_app_setting_set --app=$app --key=jwt_key --value=$jwt_key
main_domain=$(cat /etc/yunohost/current_host) main_domain=$(cat /etc/yunohost/current_host)
ynh_app_setting_set --app=$app --key=main_domain --value=$main_domain ynh_app_setting_set --app=$app --key=main_domain --value=$main_domain
#================================================= #=================================================
# STANDARD MODIFICATIONS # STANDARD MODIFICATIONS
#================================================= #=================================================
@ -101,18 +100,19 @@ chown $app:$app "$install_dir/settings.js"
ynh_script_progression --message="Preparing app..." ynh_script_progression --message="Preparing app..."
mkdir -p "$install_dir/live" mkdir -p "$install_dir/live"
cp "$install_dir/build/server-ce/genScript.js" "$install_dir/live/genScript.js"
cp "$install_dir/build/server-ce/services.js" "$install_dir/live/services.js"
cp "$install_dir/build/package.json" "$install_dir/live/package.json" cp "$install_dir/build/package.json" "$install_dir/live/package.json"
cp "$install_dir/build/package-lock.json" "$install_dir/live/package-lock.json" cp "$install_dir/build/package-lock.json" "$install_dir/live/package-lock.json"
cp -r "$install_dir/build/libraries/" "$install_dir/live/libraries/" cp -r "$install_dir/build/libraries/" "$install_dir/live/libraries/"
cp -r "$install_dir/build/services/" "$install_dir/live/services/" cp -r "$install_dir/build/services/" "$install_dir/live/services/"
cp -r "$install_dir/build/patches/" "$install_dir/live/patches/" cp -r "$install_dir/build/patches/" "$install_dir/live/patches/"
ynh_add_config --template="../conf/production.json" --destination="$JSON_FILE" ynh_add_config --template="../conf/production.json" --destination="$install_dir/build/server-ce/config/production.json"
cp -r "$install_dir/build/server-ce/config" "$install_dir/config/" cp -r "$install_dir/build/server-ce/config" "$install_dir/config/"
cp -r "$install_dir/build/server-ce/config/" "$install_dir/live/services/history-v1/config/" cp -r "$install_dir/build/server-ce/config/" "$install_dir/live/services/history-v1/config/"
ynh_store_file_checksum --file="$install_dir/config/production.json"
ynh_store_file_checksum --file="$install_dir/live/services/history-v1/config/production.json"
ynh_secure_remove --file="$install_dir/config/settings.js" ynh_secure_remove --file="$install_dir/config/settings.js"
ynh_secure_remove --file="$install_dir/build" ynh_secure_remove --file="$install_dir/build"

View file

@ -106,15 +106,13 @@ chown $app:$app "$install_dir/settings.js"
ynh_script_progression --message="Preparing app..." ynh_script_progression --message="Preparing app..."
mkdir -p "$install_dir/live" mkdir -p "$install_dir/live"
cp "$install_dir/build/server-ce/genScript.js" "$install_dir/live/genScript.js"
cp "$install_dir/build/server-ce/services.js" "$install_dir/live/services.js"
cp "$install_dir/build/package.json" "$install_dir/live/package.json" cp "$install_dir/build/package.json" "$install_dir/live/package.json"
cp "$install_dir/build/package-lock.json" "$install_dir/live/package-lock.json" cp "$install_dir/build/package-lock.json" "$install_dir/live/package-lock.json"
cp -r "$install_dir/build/libraries/" "$install_dir/live/libraries/" cp -r "$install_dir/build/libraries/" "$install_dir/live/libraries/"
cp -r "$install_dir/build/services/" "$install_dir/live/services/" cp -r "$install_dir/build/services/" "$install_dir/live/services/"
cp -r "$install_dir/build/patches/" "$install_dir/live/patches/" cp -r "$install_dir/build/patches/" "$install_dir/live/patches/"
ynh_add_config --template="../conf/production.json" --destination="$JSON_FILE" ynh_add_config --template="../conf/production.json" --destination="$install_dir/build/server-ce/config/production.json"
cp -r "$install_dir/build/server-ce/config/" "$install_dir/config/" cp -r "$install_dir/build/server-ce/config/" "$install_dir/config/"
cp -r "$install_dir/build/server-ce/config/" "$install_dir/live/services/history-v1/config/" cp -r "$install_dir/build/server-ce/config/" "$install_dir/live/services/history-v1/config/"