mirror of
https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git
synced 2024-09-03 19:46:01 +02:00
golang-1.11
This commit is contained in:
parent
d60094777d
commit
33a575dfe1
1 changed files with 3 additions and 3 deletions
|
@ -135,12 +135,12 @@ ynh_install_app_dependencies $pkg_dependencies
|
||||||
# INSTALL GO
|
# INSTALL GO
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
type /usr/lib/go/bin/go > /dev/null || {
|
type /usr/lib/golang-1.11/bin > /dev/null || {
|
||||||
ynh_script_progression --message="Installing go..." --time --weight=1
|
ynh_script_progression --message="Installing go..." --time --weight=1
|
||||||
wget https://dl.google.com/go/go$GO_VERSION.linux-$architecture.tar.gz -q
|
wget https://dl.google.com/go/go$GO_VERSION.linux-$architecture.tar.gz -q
|
||||||
tar -C /usr/lib -xzf go$GO_VERSION.linux-$architecture.tar.gz
|
tar -C /usr/lib -xzf go$GO_VERSION.linux-$architecture.tar.gz
|
||||||
}
|
}
|
||||||
export PATH=$PATH:/usr/lib/go/bin
|
export PATH=$PATH:/usr/lib/golang-1.11/bin
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE A POSTGRESQL DATABASE
|
# CREATE A POSTGRESQL DATABASE
|
||||||
|
@ -295,7 +295,7 @@ ynh_replace_string --match_string="@admin:example.com" --replace_string="$botadm
|
||||||
# Make app public if necessary
|
# Make app public if necessary
|
||||||
if [ $is_public -eq 1 ]
|
if [ $is_public -eq 1 ]
|
||||||
then
|
then
|
||||||
ynh_replace_string --match_string="example.com" --replace_string="domain" --target_file="$final_path/config.yaml"
|
ynh_replace_string --match_string="example.com" --replace_string="$domain" --target_file="$final_path/config.yaml"
|
||||||
else
|
else
|
||||||
ynh_replace_string --match_string="example.com" --replace_string="$botusers" --target_file="$final_path/config.yaml"
|
ynh_replace_string --match_string="example.com" --replace_string="$botusers" --target_file="$final_path/config.yaml"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue