1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git synced 2024-09-03 19:46:01 +02:00

Commented out golang-1.11 and static build

For faster installation debugging
This commit is contained in:
Gredin67 2020-04-15 09:24:34 +02:00 committed by GitHub
parent 87006349b1
commit 462fd27db6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@
source _common.sh source _common.sh
#source /opt/yunohost/mautrix-whatsapp/_ynh_install_extra_app_dependencies #source /opt/yunohost/mautrix-whatsapp/_ynh_install_extra_app_dependencies
source _ynh_install_extra_app_dependencies #source _ynh_install_extra_app_dependencies
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
#================================================= #=================================================
@ -162,14 +162,14 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# WARNING : theses command are used in INSTALL, UPGRADE (2 times) # WARNING : theses command are used in INSTALL, UPGRADE (2 times)
# For any update do it in all files # For any update do it in all files
if [ -n "$(uname -m | grep 64)" ] #if [ -n "$(uname -m | grep 64)" ]
then #then
ynh_setup_source --dest_dir=$final_path/ --source_id="amd64_$(lsb_release --codename --short)" # ynh_setup_source --dest_dir=$final_path/ --source_id="amd64_$(lsb_release --codename --short)"
else #else
# 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"
fi #fi
#================================================= #=================================================
# CREATE DEDICATED USER # CREATE DEDICATED USER
@ -205,8 +205,8 @@ ynh_add_systemd_config --service=mautrix-$app --template=mautrix-whatsapp.servic
#================================================= #=================================================
cd $final_path cd $final_path
echo 'export PATH=$PATH:/usr/lib/go-1.11/bin/' >> /etc/profile #echo 'export PATH=$PATH:/usr/lib/go-1.11/bin/' >> /etc/profile
source /etc/profile #source /etc/profile
go build go build
#Copy example-config.yaml to config.yaml #Copy example-config.yaml to config.yaml
cp example-config.yaml config.yaml cp example-config.yaml config.yaml