mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
further cleaning
This commit is contained in:
parent
f6b083601b
commit
c895e8f0cb
4 changed files with 4 additions and 16 deletions
|
@ -1,7 +0,0 @@
|
||||||
SOURCE_URL=https://github.com/Cyan4973/xxHash/archive/refs/tags/v0.8.1.tar.gz
|
|
||||||
SOURCE_SUM=3bb6b7d6f30c591dd65aaaff1c8b7a5b94d81687998ca9400082c739a690436c
|
|
||||||
SOURCE_SUM_PRG=sha256sum
|
|
||||||
SOURCE_FORMAT=tar.gz
|
|
||||||
SOURCE_IN_SUBDIR=true
|
|
||||||
SOURCE_FILENAME=
|
|
||||||
SOURCE_EXTRACT=true
|
|
|
@ -62,6 +62,7 @@ ram.runtime = "3G"
|
||||||
ask.fr = "Nom d'utilisateur de votre forge"
|
ask.fr = "Nom d'utilisateur de votre forge"
|
||||||
type = "string"
|
type = "string"
|
||||||
example = "Your username"
|
example = "Your username"
|
||||||
|
default = "username"
|
||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
[install.forge_token]
|
[install.forge_token]
|
||||||
|
@ -69,6 +70,7 @@ ram.runtime = "3G"
|
||||||
ask.fr = "Jeton de votre forge (OAuth)"
|
ask.fr = "Jeton de votre forge (OAuth)"
|
||||||
type = "string"
|
type = "string"
|
||||||
example = "A secret token"
|
example = "A secret token"
|
||||||
|
default = "thisisanexampletoken"
|
||||||
optional = true
|
optional = true
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
|
|
|
@ -40,13 +40,6 @@ set_forge_variables() {
|
||||||
# EXPERIMENTAL HELPERS
|
# EXPERIMENTAL HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
#=================================================
|
|
||||||
#
|
|
||||||
# Redis HELPERS
|
|
||||||
#
|
|
||||||
# Point of contact : Jean-Baptiste Holcroft <jean-baptiste@holcroft.fr>
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
# get the first available redis database
|
# get the first available redis database
|
||||||
#
|
#
|
||||||
# usage: ynh_redis_get_free_db
|
# usage: ynh_redis_get_free_db
|
||||||
|
@ -70,7 +63,7 @@ ynh_redis_get_free_db() {
|
||||||
db=-1
|
db=-1
|
||||||
done
|
done
|
||||||
|
|
||||||
test "$db" -eq -1 && ynh_die "No available Redis databases..."
|
test "$db" -eq -1 && ynh_die --message="No available Redis databases..."
|
||||||
|
|
||||||
echo "$db"
|
echo "$db"
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE POSTGRESQL DATABASE
|
# RESTORE THE POSTGRESQL DATABASE
|
||||||
#=================================================
|
#=================================================
|
||||||
REMOVEME? ynh_script_progression --message="Restoring the PostgreSQL database..." --weight=5
|
ynh_script_progression --message="Restoring the PostgreSQL database..." --weight=5
|
||||||
|
|
||||||
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pg_trgm;" --database=$db_name
|
ynh_psql_execute_as_root --sql="CREATE EXTENSION IF NOT EXISTS pg_trgm;" --database=$db_name
|
||||||
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
|
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
|
||||||
|
|
Loading…
Reference in a new issue