1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wikijs_ynh.git synced 2024-09-03 20:36:09 +02:00

Install from tar

This commit is contained in:
yalh76 2019-02-11 11:12:26 +01:00
parent 4d32fdf9f7
commit 5f22ab4da2
4 changed files with 7 additions and 18 deletions

View file

@ -1,5 +1,5 @@
SOURCE_URL=url of app's source SOURCE_URL=https://github.com/Requarks/wiki/archive/2.0.0-beta.33.tar.gz
SOURCE_SUM=sha256 checksum SOURCE_SUM=66115e8ae174083eaaec83d1c7f6e026fa97ee53d664e6f1505ebe22b0dfe7f2
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true

View file

@ -106,14 +106,13 @@ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/source
ynh_install_nodejs 10 ynh_install_nodejs 10
ynh_install_app_dependencies redis-server postgresql postgresql-contrib yarn ynh_install_app_dependencies yarn redis-server postgresql postgresql-contrib build-essential
#================================================= #=================================================
# CREATE A POSTGRESQL DATABASE # CREATE A POSTGRESQL DATABASE
#================================================= #=================================================
ynh_print_info "Creating a postgresql database ..." ynh_print_info "Creating a postgresql database ..."
### Use these lines if you need a database for the application. ### Use these lines if you need a database for the application.
### `ynh_mysql_setup_db` will create a database, an associated user and a ramdom password. ### `ynh_mysql_setup_db` will create a database, an associated user and a ramdom password.
### The password will be stored as 'mysqlpwd' into the app settings, ### The password will be stored as 'mysqlpwd' into the app settings,
@ -141,12 +140,7 @@ ynh_print_info "Setting up source files ..."
ynh_app_setting_set $app final_path $final_path ynh_app_setting_set $app final_path $final_path
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
#ynh_setup_source "$final_path" ynh_setup_source "$final_path"
git clone https://github.com/Requarks/wiki "$final_path"
pushd $final_path
git checkout "tags/2.0.0-beta.33" --quiet
popd
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION

View file

@ -93,7 +93,7 @@ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/source
ynh_install_nodejs 10 ynh_install_nodejs 10
ynh_install_app_dependencies redis-server postgresql postgresql-contrib yarn ynh_install_app_dependencies yarn redis-server postgresql postgresql-contrib build-essential
#================================================= #=================================================
# RESTORE THE POSTGRESQL DATABASE # RESTORE THE POSTGRESQL DATABASE

View file

@ -89,12 +89,7 @@ path_url=$(ynh_normalize_url_path $path_url)
ynh_print_info "Download, check and unpack source" ynh_print_info "Download, check and unpack source"
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
#ynh_setup_source "$final_path" ynh_setup_source "$final_path"
pushd $final_path
git fetch origin
git checkout "tags/2.0.0-beta.33" --quiet
popd
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
@ -114,7 +109,7 @@ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/source
ynh_install_nodejs 10 ynh_install_nodejs 10
ynh_install_app_dependencies redis-server postgresql postgresql-contrib yarn ynh_install_app_dependencies yarn redis-server postgresql postgresql-contrib build-essential
#================================================= #=================================================
# CREATE DEDICATED USER # CREATE DEDICATED USER