Skip to content

Instantly share code, notes, and snippets.

@stevenroose
Created October 15, 2015 13:27
Show Gist options
  • Save stevenroose/dfe7efbf4919d15459a0 to your computer and use it in GitHub Desktop.
Save stevenroose/dfe7efbf4919d15459a0 to your computer and use it in GitHub Desktop.
# yunohost app install https://github.com/abeudin/etherpadlite_ynh
Downloading...
Extracting...
Done.
Choose a domain for Etherpad: pad.roose.ch
Choose a path for Etherpad (default: /pad): /
Is it a public Etherpad ? (Yes|No) (default: Yes):
Executing script...
+ domain=pad.roose.ch
+ path=/
+ is_public=Yes
+ sudo yunohost app checkurl pad.roose.ch/ -a etherpadlite
+ [[ ! 0 -eq 0 ]]
+ sudo yunohost app setting etherpadlite is_public -v Yes
+ path=
++ dd if=/dev/urandom bs=1 count=200
++ tr -c -d '[A-Za-z0-9]'
++ sed -n 's/\(.\{24\}\).*/\1/p'
+ db_pwd='RAV4v2dEofSB8pHTz]qL5jDv'
++ dd if=/dev/urandom bs=1 count=200
++ tr -c -d '[A-Za-z0-9]'
++ sed -n 's/\(.\{40\}\).*/\1/p'
+ key='HAOugENXg5x7lsANXSlsb]XWQMnYF9F29kN3Yngj'
+ db_user=etherpadlite
+ sudo yunohost app initdb etherpadlite -p 'RAV4v2dEofSB8pHTz]qL5jDv'
Success! MySQL database successfully initialized
+ sudo yunohost app setting etherpadlite mysqlpwd -v 'RAV4v2dEofSB8pHTz]qL5jDv'
+ sudo apt-get install nodejs-legacy npm -y
Reading package lists...
Building dependency tree...
Reading state information...
Package nodejs-legacy is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'nodejs-legacy' has no installation candidate
E: Unable to locate package npm
+ final_path=/var/www/etherpadlite
+ sudo mkdir -p /var/www/etherpadlite
+ sudo cp -a ../sources/bin ../sources/CHANGELOG.md ../sources/CONTRIBUTING.md ../sources/doc ../sources/LICENSE ../sources/Makefile ../sources/README.md ../sources/settings.json.template ../sources/src ../sources/start.bat ../sources/tests ../sources/tools ../sources/var /var/www/etherpadlite
+ sudo cp ../conf/settings.json /var/www/etherpadlite
+ sudo cp ../conf/etherpad-lite /etc/init.d/
+ sudo chmod +x /etc/init.d/etherpad-lite
+ sudo update-rc.d etherpad-lite defaults
update-rc.d: using dependency based boot sequencing
+ sudo mkdir /var/log/etherpad-lite/
+ sudo touch /var/log/etherpad-lite/etherpad-lite.log
+ sudo chown www-data /var/log/etherpad-lite/etherpad-lite.log
+ sudo npm cache clear
sudo: npm: command not found
+ sudo /var/www/etherpadlite/bin/installDeps.sh
+ sudo npm install forever -g
+ sudo sed -i s/yunouser/etherpadlite/g /var/www/etherpadlite/settings.json
+ sudo sed -i 's/yunopass/RAV4v2dEofSB8pHTz]qL5jDv/g' /var/www/etherpadlite/settings.json
+ sudo sed -i s/yunobase/etherpadlite/g /var/www/etherpadlite/settings.json
+ sudo sed -i 's/KEY/HAOugENXg5x7lsANXSlsb]XWQMnYF9F29kN3Yngj/g' /var/www/etherpadlite/settings.json
+ sudo chown -R www-data: /var/www/etherpadlite
+ sed -i s@PATHTOCHANGE@@g ../conf/nginx.conf ../conf/nginx.conf-nosub
+ sed -i s@ALIASTOCHANGE@/var/www/etherpadlite/@g ../conf/nginx.conf ../conf/nginx.conf-nosub
+ '[' '' = '' ']'
+ sudo cp ../conf/nginx.conf-nosub /etc/nginx/conf.d/pad.roose.ch.d/etherpadlite.conf
+ sudo service nginx reload
Reloading nginx configuration: nginx.
+ '[' Yes = Yes ']'
+ sudo yunohost app setting etherpadlite unprotected_uris -v /
+ sudo yunohost app ssowatconf
Success! SSOwat configuration successfully generated
+ sudo service etherpad-lite start
Starting Etherpad Lite...
done
Success! SSOwat configuration successfully generated
Success! Installation complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment