Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@yunohost:~# yunohost app install https://github.com/zehiro/kresus_ynh --verbose
- Downloading...
- Extracting...
- Done
- Checking required packages for kresus...
- Available domains:
- - yunohost.XXXXX.ovh
- Choose a domain name for Kresus (default: yunohost.XXXXX.ovh):
- Choose a path for Kresus (default: /kresus):
- Choose a user: olange
- Would you like to allow email notifications ? [0 | 1] (default: 0):
- Executing script '/var/cache/yunohost/from_file/kresus_ynh-master/scripts/install'...
- + set -eu
- + app=kresus
- + domain=yunohost.XXXXX.ovh
- + path=/kresus
- + install_path=/home/ynhkresus
- + source /usr/share/yunohost/helpers
- +++ run-parts --list /usr/share/yunohost/helpers.d
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
- ++ . /usr/share/yunohost/helpers.d/backend
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
- ++ . /usr/share/yunohost/helpers.d/filesystem
- +++ CAN_BIND=1
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
- ++ . /usr/share/yunohost/helpers.d/ip
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
- ++ . /usr/share/yunohost/helpers.d/mysql
- +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
- ++ . /usr/share/yunohost/helpers.d/network
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
- ++ . /usr/share/yunohost/helpers.d/package
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
- ++ . /usr/share/yunohost/helpers.d/print
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
- ++ . /usr/share/yunohost/helpers.d/setting
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
- ++ . /usr/share/yunohost/helpers.d/string
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
- ++ . /usr/share/yunohost/helpers.d/system
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
- ++ . /usr/share/yunohost/helpers.d/user
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
- ++ . /usr/share/yunohost/helpers.d/utils
- + yunohost app checkurl yunohost.XXXXX.ovh/kresus -a kresus
- Warning: 'yunohost app checkurl' is deprecated and will be removed in the future
- + ynh_system_user_exists kresus
- + getent passwd kresus
- + smtp_password=
- + '[' 0 -eq 1 ']'
- + ynh_system_user_create kresus /home/ynhkresus
- + ynh_system_user_exists kresus
- + getent passwd kresus
- + '[' 2 -ge 2 ']'
- + local 'user_home_dir=-d /home/ynhkresus'
- + sudo useradd -d /home/ynhkresus --system --user-group kresus --shell /usr/sbin/nologin
- ++ ynh_find_port 9876
- ++ local port=9876
- ++ test -n 9876
- ++ netcat -z 127.0.0.1 9876
- ++ echo 9876
- + port=9876
- + sudo -u kresus mkdir -p /home/ynhkresus/data
- + apt-get -y install curl apt-transport-https ca-certificates
- Reading package lists...
- Building dependency tree...
- Reading state information...
- apt-transport-https is already the newest version.
- ca-certificates is already the newest version.
- curl is already the newest version.
- The following packages were automatically installed and are no longer required:
- gyp libc-ares-dev libc-ares2 libjs-node-uuid libssl-dev libssl-doc
- libv8-3.14-dev libv8-3.14.5 node-abbrev node-ansi node-ansi-color-table
- node-archy node-async node-block-stream node-combined-stream node-cookie-jar
- node-delayed-stream node-forever-agent node-form-data node-fstream
- node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs
- node-gyp node-inherits node-ini node-json-stringify-safe node-lockfile
- node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream
- node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once
- node-osenv node-qs node-read node-read-package-json node-request node-retry
- node-rimraf node-semver node-sha node-sigmund node-slide node-tar
- node-tunnel-agent node-underscore node-which zlib1g-dev
- Use 'apt-get autoremove' to remove them.
- 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
- + echo 'deb https://deb.nodesource.com/node_6.x jessie main'
- + apt-key add -
- + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key
- OK
- + apt-get -y install debian-archive-keyring
- Reading package lists...
- Building dependency tree...
- Reading state information...
- debian-archive-keyring is already the newest version.
- The following packages were automatically installed and are no longer required:
- gyp libc-ares-dev libc-ares2 libjs-node-uuid libssl-dev libssl-doc
- libv8-3.14-dev libv8-3.14.5 node-abbrev node-ansi node-ansi-color-table
- node-archy node-async node-block-stream node-combined-stream node-cookie-jar
- node-delayed-stream node-forever-agent node-form-data node-fstream
- node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs
- node-gyp node-inherits node-ini node-json-stringify-safe node-lockfile
- node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream
- node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once
- node-osenv node-qs node-read node-read-package-json node-request node-retry
- node-rimraf node-semver node-sha node-sigmund node-slide node-tar
- node-tunnel-agent node-underscore node-which zlib1g-dev
- Use 'apt-get autoremove' to remove them.
- 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
- + echo 'deb http://deb.debian.org/debian jessie-backports main'
- + apt-get update
- Hit http://repo.yunohost.org jessie InRelease
- Hit http://repo.yunohost.org jessie/stable amd64 Packages
- Hit https://deb.nodesource.com jessie InRelease
- Hit http://deb.debian.org jessie-backports InRelease
- Hit https://deb.nodesource.com jessie/main amd64 Packages
- Get:1 https://deb.nodesource.com jessie/main Translation-en [162 B]
- Get:2 https://deb.nodesource.com jessie/main Translation-en [162 B]
- Get:3 https://deb.nodesource.com jessie/main Translation-en [162 B]
- Get:4 https://deb.nodesource.com jessie/main Translation-en [162 B]
- Get:5 https://deb.nodesource.com jessie/main Translation-en [162 B]
- Ign https://deb.nodesource.com jessie/main Translation-en
- Ign http://repo.yunohost.org jessie/stable Translation-en
- Get:6 http://deb.debian.org jessie-backports/main amd64 Packages/DiffIndex [27.8 kB]
- Get:7 http://deb.debian.org jessie-backports/main Translation-en/DiffIndex [27.8 kB]
- Ign http://ftp.debian.org jessie InRelease
- Hit http://ftp.debian.org jessie-updates InRelease
- Hit http://ftp.debian.org jessie Release.gpg
- Hit http://ftp.debian.org jessie Release
- Get:8 http://ftp.debian.org jessie-updates/main amd64 Packages/DiffIndex [9868 B]
- Hit http://ftp.debian.org jessie-updates/contrib amd64 Packages
- Hit http://ftp.debian.org jessie-updates/contrib Translation-en
- Get:9 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3688 B]
- Hit http://ftp.debian.org jessie/main amd64 Packages
- Hit http://ftp.debian.org jessie/contrib amd64 Packages
- Hit http://ftp.debian.org jessie/contrib Translation-en
- Hit http://ftp.debian.org jessie/main Translation-en
- Hit http://security.debian.org jessie/updates InRelease
- Hit http://security.debian.org jessie/updates/main amd64 Packages
- Hit http://security.debian.org jessie/updates/contrib amd64 Packages
- Hit http://security.debian.org jessie/updates/contrib Translation-en
- Hit http://security.debian.org jessie/updates/main Translation-en
- Fetched 69.1 kB in 2s (30.5 kB/s)
- Reading package lists...
- + apt-get install -y nodejs python-pip python-dev python-lxml python-imaging
- Reading package lists...
- Building dependency tree...
- Reading state information...
- python-lxml is already the newest version.
- python-imaging is already the newest version.
- python-dev is already the newest version.
- python-pip is already the newest version.
- nodejs is already the newest version.
- The following packages were automatically installed and are no longer required:
- gyp libc-ares-dev libc-ares2 libjs-node-uuid libssl-dev libssl-doc
- libv8-3.14-dev libv8-3.14.5 node-abbrev node-ansi node-ansi-color-table
- node-archy node-async node-block-stream node-combined-stream node-cookie-jar
- node-delayed-stream node-forever-agent node-form-data node-fstream
- node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs
- node-gyp node-inherits node-ini node-json-stringify-safe node-lockfile
- node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream
- node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once
- node-osenv node-qs node-read node-read-package-json node-request node-retry
- node-rimraf node-semver node-sha node-sigmund node-slide node-tar
- node-tunnel-agent node-underscore node-which zlib1g-dev
- Use 'apt-get autoremove' to remove them.
- 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
- + apt-get install -yq -t jessie-backports python-future python-six
- Reading package lists...
- Building dependency tree...
- Reading state information...
- python-future is already the newest version.
- python-six is already the newest version.
- The following packages were automatically installed and are no longer required:
- gyp libc-ares-dev libc-ares2 libjs-node-uuid libssl-dev libssl-doc
- libv8-3.14-dev libv8-3.14.5 node-abbrev node-ansi node-ansi-color-table
- node-archy node-async node-block-stream node-combined-stream node-cookie-jar
- node-delayed-stream node-forever-agent node-form-data node-fstream
- node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs
- node-gyp node-inherits node-ini node-json-stringify-safe node-lockfile
- node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream
- node-node-uuid node-nopt node-normalize-package-data node-npmlog node-once
- node-osenv node-qs node-read node-read-package-json node-request node-retry
- node-rimraf node-semver node-sha node-sigmund node-slide node-tar
- node-tunnel-agent node-underscore node-which zlib1g-dev
- Use 'apt-get autoremove' to remove them.
- 0 upgraded, 0 newly installed, 0 to remove and 89 not upgraded.
- + pip install -U setuptools
- Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages
- Cleaning up...
- + pip install html2text simplejson BeautifulSoup PyExecJS unidecode
- Requirement already satisfied (use --upgrade to upgrade): html2text in /usr/local/lib/python2.7/dist-packages
- Requirement already satisfied (use --upgrade to upgrade): simplejson in /usr/local/lib/python2.7/dist-packages
- Requirement already satisfied (use --upgrade to upgrade): BeautifulSoup in /usr/local/lib/python2.7/dist-packages
- Requirement already satisfied (use --upgrade to upgrade): PyExecJS in /usr/local/lib/python2.7/dist-packages
- Requirement already satisfied (use --upgrade to upgrade): unidecode in /usr/local/lib/python2.7/dist-packages
- Requirement already satisfied (use --upgrade to upgrade): six>=1.10.0 in /usr/lib/python2.7/dist-packages (from PyExecJS)
- Cleaning up...
- + pip install weboob
- Requirement already satisfied (use --upgrade to upgrade): weboob in /usr/local/lib/python2.7/dist-packages
- Requirement already satisfied (use --upgrade to upgrade): lxml in /usr/lib/python2.7/dist-packages (from weboob)
- Requirement already satisfied (use --upgrade to upgrade): cssselect in /usr/local/lib/python2.7/dist-packages (from weboob)
- Requirement already satisfied (use --upgrade to upgrade): requests>=2.0.0 in /usr/lib/python2.7/dist-packages (from weboob)
- Requirement already satisfied (use --upgrade to upgrade): python-dateutil in /usr/local/lib/python2.7/dist-packages (from weboob)
- Requirement already satisfied (use --upgrade to upgrade): PyYAML in /usr/lib/python2.7/dist-packages (from weboob)
- Requirement already satisfied (use --upgrade to upgrade): html2text>=3.200 in /usr/local/lib/python2.7/dist-packages (from weboob)
- Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python2.7/dist-packages (from weboob)
- Requirement already satisfied (use --upgrade to upgrade): Pillow in /usr/lib/python2.7/dist-packages (from weboob)
- Requirement already satisfied (use --upgrade to upgrade): mechanize in /usr/local/lib/python2.7/dist-packages (from weboob)
- Requirement already satisfied (use --upgrade to upgrade): futures in /usr/local/lib/python2.7/dist-packages (from weboob)
- Cleaning up...
- + sudo -u kresus sh -c 'cd $final_path && prefix=$final_path npm install kresus'
- /home/ynhkresus
- `-- kresus@0.12.2
- Warning: npm WARN enoent ENOENT: no such file or directory, open '/home/ynhkresus/package.json'
- Warning: npm WARN ynhkresus No description
- Warning: npm WARN ynhkresus No repository field.
- Warning: npm WARN ynhkresus No README data
- Warning: npm WARN ynhkresus No license field.
- + nginx_conf=../conf/nginx.conf
- + sed -i s@YNH_WWW_PATH@/kresus@g ../conf/nginx.conf
- + sudo cp ../conf/nginx.conf /etc/nginx/conf.d/yunohost.XXXXX.ovh.d/kresus.conf
- + kresus_conf=../conf/config.ini
- + sed -i s@YNH_DATA_DIR@/home/ynhkresus@ ../conf/config.ini
- + sed -i s@KRESUS_PATH@/kresus@ ../conf/config.ini
- + sed -i s@YNH_APP_ARG_DOMAIN@yunohost.XXXXX.ovh@ ../conf/config.ini
- + sed -i s@YNH_USER@kresus@ ../conf/config.ini
- + sed -i s@YNH_PORT@9876@ ../conf/config.ini
- + sed -i s@KRESUS_SMTP_PASSWORD@@ ../conf/config.ini
- + ynh_app_setting_set kresus domain yunohost.XXXXX.ovh
- + sudo yunohost app setting kresus domain --value=yunohost.XXXXX.ovh --quiet
- + ynh_app_setting_set kresus ynh_data_dir /home/ynhkresus
- + sudo yunohost app setting kresus ynh_data_dir --value=/home/ynhkresus --quiet
- + ynh_app_setting_set kresus path /kresus
- + sudo yunohost app setting kresus path --value=/kresus --quiet
- + ynh_app_setting_set kresus user kresus
- + sudo yunohost app setting kresus user --value=kresus --quiet
- + ynh_app_setting_set kresus port 9876
- + sudo yunohost app setting kresus port --value=9876 --quiet
- + '[' 0 -eq 1 ']'
- + config_path=/home/ynhkresus/config.ini
- + sudo -u kresus cp ../conf/config.ini /home/ynhkresus/config.ini
- + sudo chmod 600 /home/ynhkresus/config.ini
- + systemd_service=../conf/kresus.service
- + sed -i s@YNH_HOME@/home/ynhkresus@g ../conf/kresus.service
- + sed -i s@YNH_CONFIG_PATH@/home/ynhkresus/config.ini@ ../conf/kresus.service
- + sed -i s@YNH_USER@kresus@ ../conf/kresus.service
- + sed -i s@YNH_GROUP@kresus@ ../conf/kresus.service
- + sudo cp ../conf/kresus.service /etc/systemd/system/kresus.service
- + systemctl enable kresus
- Warning: Created symlink from /etc/systemd/system/multi-user.target.wants/kresus.service to /etc/systemd/system/kresus.service.
- + systemctl start kresus
- Warning: Failed to get D-Bus connection: Unknown error -1
- Executing script '/var/cache/yunohost/from_file/kresus_ynh-master/scripts/remove'...
- + set -u
- + app=kresus
- + source /usr/share/yunohost/helpers
- +++ run-parts --list /usr/share/yunohost/helpers.d
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/backend ']'
- ++ . /usr/share/yunohost/helpers.d/backend
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/filesystem ']'
- ++ . /usr/share/yunohost/helpers.d/filesystem
- +++ CAN_BIND=1
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/ip ']'
- ++ . /usr/share/yunohost/helpers.d/ip
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/mysql ']'
- ++ . /usr/share/yunohost/helpers.d/mysql
- +++ MYSQL_ROOT_PWD_FILE=/etc/yunohost/mysql
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/network ']'
- ++ . /usr/share/yunohost/helpers.d/network
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/package ']'
- ++ . /usr/share/yunohost/helpers.d/package
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/print ']'
- ++ . /usr/share/yunohost/helpers.d/print
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/setting ']'
- ++ . /usr/share/yunohost/helpers.d/setting
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/string ']'
- ++ . /usr/share/yunohost/helpers.d/string
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/system ']'
- ++ . /usr/share/yunohost/helpers.d/system
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/user ']'
- ++ . /usr/share/yunohost/helpers.d/user
- ++ for helper in '$(run-parts --list /usr/share/yunohost/helpers.d 2>/dev/null)'
- ++ '[' -r /usr/share/yunohost/helpers.d/utils ']'
- ++ . /usr/share/yunohost/helpers.d/utils
- ++ ynh_app_setting_get kresus domain
- ++ sudo yunohost app setting kresus domain --output-as plain --quiet
- + domain=yunohost.XXXXX.ovh
- + systemctl stop kresus
- + systemctl disable kresus
- Warning: Failed to get D-Bus connection: Unknown error -1
- Warning: Removed symlink /etc/systemd/system/multi-user.target.wants/kresus.service.
- + ynh_secure_remove /etc/nginx/conf.d/yunohost.XXXXX.ovh.d/kresus.conf
- + local path_to_remove=/etc/nginx/conf.d/yunohost.XXXXX.ovh.d/kresus.conf
- + local 'forbidden_path= /var/www /home/yunohost.app'
- + [[ /var/www /home/yunohost.app =~ /etc/nginx/conf\.d/yunohost\.XXXXX\.ovh\.d/kresus\.conf ]]
- + [[ /etc/nginx/conf.d/yunohost.XXXXX.ovh.d/kresus.conf =~ ^/[[:alnum:]]+$ ]]
- + [[ f = \/ ]]
- + '[' -e /etc/nginx/conf.d/yunohost.XXXXX.ovh.d/kresus.conf ']'
- + sudo rm -R /etc/nginx/conf.d/yunohost.XXXXX.ovh.d/kresus.conf
- + ynh_secure_remove /etc/systemd/system/kresus.service
- + local path_to_remove=/etc/systemd/system/kresus.service
- + local 'forbidden_path= /var/www /home/yunohost.app'
- + [[ /var/www /home/yunohost.app =~ /etc/systemd/system/kresus\.service ]]
- + [[ /etc/systemd/system/kresus.service =~ ^/[[:alnum:]]+$ ]]
- + [[ e = \/ ]]
- + '[' -e /etc/systemd/system/kresus.service ']'
- + sudo rm -R /etc/systemd/system/kresus.service
- + sudo service nginx reload
- Reloading nginx configuration: nginx.
- + ynh_system_user_delete kresus
- + ynh_system_user_exists kresus
- + getent passwd kresus
- + echo 'Remove the user kresus'
- Warning: Remove the user kresus
- + sudo userdel kresus
- Success! The SSOwat configuration has been generated
- Error: Installation failed
- root@yunohost:~# ^C
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement