mirror of
https://github.com/YunoHost-Apps/kiwiirc_ynh.git
synced 2024-09-03 19:35:59 +02:00
Fix
This commit is contained in:
parent
1851533ca1
commit
006d86d0cf
2 changed files with 20 additions and 13 deletions
|
@ -1,6 +1,7 @@
|
||||||
SOURCE_URL=https://github.com/kiwiirc/kiwiirc/releases/download/v1.5.0/kiwiirc_v1.5.0.zip
|
SOURCE_URL=https://kiwiirc.com/downloads/kiwiirc_20.05.24.1-1_amd64.deb
|
||||||
SOURCE_SUM=c7b31b2a92b173db4a3878d95aa74c8eb796e7b4d5600a80a00a73d80aa12ada
|
SOURCE_SUM=c99504c6de678fd91aed357ff0dada16a8df9e932970ed85767b516a9f87df52
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=zip
|
SOURCE_FORMAT=deb
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
SOURCE_FILENAME=
|
SOURCE_FILENAME=kiwiirc_20.05.24.1-1_amd64.deb
|
||||||
|
SOURCE_EXTRACT=false
|
|
@ -69,27 +69,33 @@ ynh_script_progression --message="Setting up source files..." --weight=2
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
ynh_app_setting_set --app=$app --key=final_path --value=$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 --dest_dir="$final_path"
|
#ynh_setup_source --dest_dir="$final_path"
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:www-data "$final_path"
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
|
tempdir="$(mktemp -d)"
|
||||||
|
|
||||||
|
ynh_setup_source --dest_dir=$tempdir --source_id=app
|
||||||
|
|
||||||
|
ynh_exec_warn_less dpkg -i $tempdir/kiwiirc_20.05.24.1-1_amd64.deb
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
#CREAT GATEWAYPATH
|
#CREAT GATEWAYPATH
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Setting up gatheway path..." --weight=2
|
# ynh_script_progression --message="Setting up gatheway path..." --weight=2
|
||||||
|
|
||||||
webircgateway_path=/var/www/webircgateway
|
# webircgateway_path=/var/www/webircgateway
|
||||||
mkdir -p $webircgateway_path
|
# mkdir -p $webircgateway_path
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=webircgateway_path --value=$webircgateway_path
|
# ynh_app_setting_set --app=$app --key=webircgateway_path --value=$webircgateway_path
|
||||||
|
|
||||||
mv ../sources/webircgateway/* $webircgateway_path
|
# mv ../sources/webircgateway/* $webircgateway_path
|
||||||
|
|
||||||
chmod 750 "$webircgateway_path"
|
# chmod 750 "$webircgateway_path"
|
||||||
chmod -R o-rwx "$webircgateway_path"
|
# chmod -R o-rwx "$webircgateway_path"
|
||||||
chown -R $app:www-data "$webircgateway_path"
|
# chown -R $app:www-data "$webircgateway_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
|
Loading…
Reference in a new issue