1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00

Correct typo in common, add armhf for raspberry, and comply with YEP-1.3 & YEP-2.4

This commit is contained in:
Jean-Baptiste Holcroft 2017-10-06 10:37:19 +02:00
parent 0a46edf141
commit 9da1fa4979
6 changed files with 9 additions and 12 deletions

View file

@ -10,7 +10,7 @@
}, },
"version": "2.16.0", "version": "2.16.0",
"url": "https://weblate.org", "url": "https://weblate.org",
"license": "GNU GPL-3, or any later version.", "license": "AGPL-3.0",
"maintainer": { "maintainer": {
"name": "Jean-Baptiste Holcroft", "name": "Jean-Baptiste Holcroft",
"email": "jean-baptiste@holcroft.fr" "email": "jean-baptiste@holcroft.fr"

View file

@ -10,7 +10,7 @@ ynh_psql_test_if_first_run() {
systemctl start postgresql systemctl start postgresql
su --command="psql -c\"ALTER user postgres WITH PASSWORD '${pgsql}'\"" postgres su --command="psql -c\"ALTER user postgres WITH PASSWORD '${pgsql}'\"" postgres
# we can't use peer since YunoHost create users with nologin # we can't use peer since YunoHost create users with nologin
sed -i '/local\s*all\s*all\s*peer/i sed -i '/local\s*all\s*all\s*peer/i \
local all all password' /etc/postgresql/9.4/main/pg_hba.conf local all all password' /etc/postgresql/9.4/main/pg_hba.conf
systemctl enable postgresql systemctl enable postgresql
systemctl reload postgresql systemctl reload postgresql

View file

@ -6,8 +6,7 @@
# MANAGE SCRIPT FAILURE # MANAGE SCRIPT FAILURE
#================================================= #=================================================
# Exit on command errors and treat access to unset variables as an error ynh_abort_if_errors
set -eu
#================================================= #=================================================
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS

View file

@ -116,6 +116,9 @@ chsh --shell /bin/bash "$app"
#================================================= #=================================================
arch=$(dpkg --print-architecture) arch=$(dpkg --print-architecture)
# Rasberry Pi: Debian armhf (ARM hard float) refers to the ARMv7
[[ $arch = "armhf" ]] && arch="arm"
version="hub-linux-${arch}-2.3.0-pre10" version="hub-linux-${arch}-2.3.0-pre10"
file_bin="hub-linux-${arch}-2.3.0-pre10.tgz" file_bin="hub-linux-${arch}-2.3.0-pre10.tgz"
wget --quiet "https://github.com/github/hub/releases/download/v2.3.0-pre10/${file_bin}" wget --quiet "https://github.com/github/hub/releases/download/v2.3.0-pre10/${file_bin}"

View file

@ -6,18 +6,12 @@
# MANAGE SCRIPT FAILURE # MANAGE SCRIPT FAILURE
#================================================= #=================================================
# Exit on command errors and treat access to unset variables as an error ynh_abort_if_errors
set -eu
#================================================= #=================================================
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS
#================================================= #=================================================
if [ ! -e _common.sh ]; then
# Get the _common.sh file if it's not in the current directory
cp ../settings/scripts/_common.sh ./_common.sh
chmod a+rx _common.sh
fi
source _common.sh source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers

View file

@ -5,10 +5,11 @@
#================================================= #=================================================
# IMPORT GENERIC HELPERS # IMPORT GENERIC HELPERS
#================================================= #=================================================
set -eu
source _common.sh source _common.sh
source /usr/share/yunohost/helpers source /usr/share/yunohost/helpers
ynh_abort_if_errors
#================================================= #=================================================
# LOAD SETTINGS # LOAD SETTINGS
#================================================= #=================================================