1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mineweb_ynh.git synced 2024-09-03 19:45:54 +02:00
mineweb_ynh/scripts/install
eric_G fbb7e72cf1
Testing (#25)
* Update check_process

* Set badge to SVG

* Set badge to SVG

* Upgrade to 1.12.0 (#3)

* Upgrade to 1.13.0 (#5)

* Fix linter warnings

* Update manifest.json

* Cleaning up (#8)

* Cleaning up

* Update database.php

* [autopatch] Update issue and PR templates (#10)

* Testing (#9)

* Fix linter warnings

* [autopatch] Update issue and PR templates

Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
Co-authored-by: Yunohost-Bot <>

* Fix (#11)

* Fix

* Update upgrade

* 1.14.1

* Auto-update README

* 1.14.3

* Auto-update README

* 1.14.5

* Auto-update README

* Update manifest.json

* 1.14.9 (#15)

* 1.14.9

* Update manifest.json

* Auto-update README

* 4.3 (#17)

* 1.15.1

* Auto-update README

* Bullseye (#20)

* set relative path for --keep opt

* Auto-update README

* Fix

* Update restore

* Update restore

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Update manifest.json

* Auto-update README

* Upgrade auto-updater (#22)

* [autopatch] Upgrade auto-updater

* Auto-update README

---------

Co-authored-by: tituspijean <titus@pijean.ovh>

* Version 2 (#23)

* v2

* v2

* Auto-update README

* fix

* Update manifest.toml

* Auto-update README

* Update manifest.toml

* Update backup

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Auto-update README

* Update restore

* cleaning

* Delete .DS_Store

* Auto-update README

* Update manifest.toml

* cleaning

* Update manifest.toml

Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>

* Update manifest.toml

* Auto-update README

---------

Co-authored-by: YunoHost Bot <yunohost-bot@users.noreply.github.com>
Co-authored-by: Yunohost-Bot <>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: tituspijean <titus@pijean.ovh>
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
Co-authored-by: Alexandre Aubin <4533074+alexAubin@users.noreply.github.com>
2023-11-28 09:59:15 +01:00

50 lines
1.6 KiB
Bash

#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=7
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring NGINX web server..." --weight=2
# Create a dedicated NGINX config
ynh_add_nginx_config
# Create a dedicated PHP-FPM config
ynh_add_fpm_config
#=================================================
# MODIFY A CONFIG FILE
#=================================================
ynh_add_config --template="database.php" --destination="$install_dir/app/Config/database.php"
#=================================================
# MODIFY FIRST.CTP
#=================================================
ynh_replace_string --match_string="app/webroot/" --replace_string="" --target_file="$install_dir/app/View/Install/first.ctp"
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Installation of $app completed" --last