Add rsync
aymhce opened this issue · 1 comments
aymhce commented
Hello,
There is a missing depend for rsync command.
Here, my install log on error :
sudo: rsync: command not found
sudo rsync -a /tmp/tmp.V0nqWkV2B0/gogs/LICENSE /tmp/tmp.V0nqWkV2B0/gogs/README.md /tmp/tmp.V0nqWkV2B0/gogs/README_ZH.md /tmp/tmp.V0nqWkV2B0/gogs/gogs /tmp/tmp.V0nqWkV2B0/gogs/public /tmp/tmp.V0nqWkV2B0/gogs/scripts /tmp/tmp.V0nqWkV2B0/gogs/templates /opt/gogs
+ unzip -q /tmp/gogs.zip -d /tmp/tmp.V0nqWkV2B0
+ wget -q -O /tmp/gogs.zip https://github.com/gogits/gogs/releases/download/v0.11/raspi2_armv6.zip
+ rm -f /tmp/gogs.zip
+ gogs_tarball=/tmp/gogs.zip
+ local TMPDIR=/tmp/tmp.V0nqWkV2B0
++ mktemp -d
+ local DESTDIR=/opt/gogs
+ extract_gogs /opt/gogs
+ sudo chown -R gogs:gogs /home/gogs /var/log/gogs
+ sudo mkdir -p /opt/gogs/custom/conf /home/gogs/repositories /home/gogs/data/avatars /home/gogs/data/avatars /home/gogs/data/attachments /var/log/gogs
+ DATA_PATH=/home/gogs/data
+ REPO_PATH=/home/gogs/repositories
+ sudo adduser gogs --ingroup gogs --system --quiet --shell /bin/bash
+ id -u gogs
+ sudo addgroup gogs --system --quiet
+ id -g gogs
+ sudo yunohost app setting gogs secret_key -v No --quiet
+ ynh_app_setting_set gogs secret_key No
+ sudo yunohost app setting gogs is_public -v No --quiet
+ ynh_app_setting_set gogs is_public No
+ sudo yunohost app setting gogs adminusername -v aymeric --quiet
+ ynh_app_setting_set gogs adminusername aymeric
+ sudo yunohost app setting gogs mysqlpwd -v Itia7ZdEsd1yQTyIp1QR6MzR --quiet
+ ynh_app_setting_set gogs mysqlpwd Itia7ZdEsd1yQTyIp1QR6MzR
+ mysql -u root '--password=qce]xkz1uJ' -B ''
+ ynh_mysql_connect_as root 'qce]xkz1uJ' ''
++ sudo cat /etc/yunohost/mysql
+ ynh_mysql_execute_as_root 'CREATE DATABASE gogs; GRANT ALL PRIVILEGES ON gogs.* TO '\''gogs'\''@'\''localhost'\'' IDENTIFIED BY '\''Itia7ZdEsd1yQTyIp1QR6MzR'\'' WITH GRANT OPTION;'
+ sql+=' WITH GRANT OPTION;'
+ sql+=' IDENTIFIED BY '\''Itia7ZdEsd1yQTyIp1QR6MzR'\'''
+ [[ -n Itia7ZdEsd1yQTyIp1QR6MzR ]]
+ sql+=' GRANT ALL PRIVILEGES ON gogs.* TO '\''gogs'\''@'\''localhost'\'''
+ [[ 3 -gt 1 ]]
+ sql='CREATE DATABASE gogs;'
+ db=gogs
+ ynh_mysql_create_db gogs gogs Itia7ZdEsd1yQTyIp1QR6MzR
+ key=8l9eN5zskNWQwu4hYcOMOnYW
++ tr -c -d A-Za-z0-9
++ sed -n 's/\(.\{24\}\).*/\1/p'
++ dd if=/dev/urandom bs=1 count=200
++ ynh_string_random
+ dbpass=Itia7ZdEsd1yQTyIp1QR6MzR
++ tr -c -d A-Za-z0-9
++ sed -n 's/\(.\{24\}\).*/\1/p'
++ dd if=/dev/urandom bs=1 count=200
++ ynh_string_random
+ [[ -d /opt/gogs ]]
+ DESTDIR=/opt/gogs
+ grep -q '"username": "aymeric"'
+ sudo yunohost user list --output-as json
+ ynh_user_exists aymeric
+ sudo yunohost app checkurl domainelibre.fr/gogs -a gogs
++ . /usr/share/yunohost/helpers.d/utils
++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/user
++ '[' -r /usr/share/yunohost/helpers.d/user ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/string
++ '[' -r /usr/share/yunohost/helpers.d/string ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/setting
++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/print
++ '[' -r /usr/share/yunohost/helpers.d/print ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/package
++ '[' -r /usr/share/yunohost/helpers.d/package ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
+++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
++ . /usr/share/yunohost/helpers.d/mysql
++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
++ . /usr/share/yunohost/helpers.d/ip
++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
+++ CAN_BIND=1
++ . /usr/share/yunohost/helpers.d/filesystem
++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
+++ run-parts --list /usr/share/yunohost/helpers.d
+ source /usr/share/yunohost/helpers
+ dbuser=gogs
+ dbname=gogs
+ app=gogs
++ GOGS_BINARY_URL=https://github.com/gogits/gogs/releases/download/v0.11/raspi2_armv6.zip
++ ARCHITECTURE=raspi2_armv6
++ '[' -n armv7l ']'
+++ grep arm
+++ uname -m
++ '[' -n '' ']'
+++ grep 86
+++ uname -m
++ '[' -n '' ']'
+++ grep 64
+++ uname -m
++ VERSION=0.11
++ APPNAME=gogs
+ source ./_common.sh
+ is_public=No
+ admin=aymeric
+ path=/gogs
+ domain=domainelibre.fr
+ set -euo pipefail
Exécution du script « /var/cache/yunohost/from_file/gogs_ynh-master/scripts/install »...
Vérification des paquets requis...
Terminé
Extraction...
Téléchargement...