mirror of
https://github.com/YunoHost-Apps/dont-code_ynh.git
synced 2024-09-03 18:26:34 +02:00
Yes
This commit is contained in:
parent
d2be1d61ce
commit
350e10a644
3 changed files with 14 additions and 1 deletions
|
@ -41,6 +41,10 @@ ynh_backup_if_checksum_is_different --file="$install_dir/.env"
|
||||||
ynh_replace_string --match_string="$document_url" --replace_string="$new_document_url" --target_file="$install_dir/.env"
|
ynh_replace_string --match_string="$document_url" --replace_string="$new_document_url" --target_file="$install_dir/.env"
|
||||||
ynh_store_file_checksum --file="$install_dir/.env"
|
ynh_store_file_checksum --file="$install_dir/.env"
|
||||||
|
|
||||||
|
# Update the repository pages
|
||||||
|
ynh_add_config --template="repository-next.json" --destination="$data_dir/repository-next.json"
|
||||||
|
ynh_add_config --template="repository-stable.json" --destination="$data_dir/repository-stable.json"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALISATION
|
# GENERIC FINALISATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -35,9 +35,14 @@ ynh_app_setting_set --app="$app" --key=document_dir --value="$document_dir"
|
||||||
document_url=$(append_uri "https://${domain}${path}" "docs")
|
document_url=$(append_uri "https://${domain}${path}" "docs")
|
||||||
ynh_app_setting_set --app="$app" --key=document_url --value="$document_url"
|
ynh_app_setting_set --app="$app" --key=document_url --value="$document_url"
|
||||||
|
|
||||||
# Add the status page
|
# Add the status pageindex
|
||||||
ynh_add_config --template="index.html" --destination="$data_dir/index.html"
|
ynh_add_config --template="index.html" --destination="$data_dir/index.html"
|
||||||
|
|
||||||
|
# Add the repository pages
|
||||||
|
ynh_add_config --template="repository-next.json" --destination="$data_dir/repository-next.json"
|
||||||
|
ynh_add_config --template="repository-stable.json" --destination="$data_dir/repository-stable.json"
|
||||||
|
|
||||||
|
|
||||||
chmod -R o-rwx "$data_dir"
|
chmod -R o-rwx "$data_dir"
|
||||||
chown -R $app:www-data "$data_dir"
|
chown -R $app:www-data "$data_dir"
|
||||||
|
|
||||||
|
|
|
@ -117,6 +117,10 @@ ynh_script_progression --message="Configuring document storage..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="index.html" --destination="$data_dir/index.html"
|
ynh_add_config --template="index.html" --destination="$data_dir/index.html"
|
||||||
|
|
||||||
|
# Add the repository pages
|
||||||
|
ynh_add_config --template="repository-next.json" --destination="$data_dir/repository-next.json"
|
||||||
|
ynh_add_config --template="repository-stable.json" --destination="$data_dir/repository-stable.json"
|
||||||
|
|
||||||
chmod -R o-rwx "$data_dir"
|
chmod -R o-rwx "$data_dir"
|
||||||
chown -R "$app:www-data" "$data_dir"
|
chown -R "$app:www-data" "$data_dir"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue