Some minor changes..
This commit is contained in:
parent
c4d7ccef3b
commit
859d4c5c8e
@ -15,6 +15,10 @@ apt install -y nodejs
|
|||||||
_etherpad_user="etherpad"
|
_etherpad_user="etherpad"
|
||||||
adduser --system --home=/var/www/etherpad/ --group $_etherpad_user
|
adduser --system --home=/var/www/etherpad/ --group $_etherpad_user
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# As user 'etherpad'
|
||||||
|
# ---
|
||||||
|
|
||||||
# Become user etherpad
|
# Become user etherpad
|
||||||
#
|
#
|
||||||
# Note: its a system account, so you have to provide a shell
|
# Note: its a system account, so you have to provide a shell
|
||||||
@ -25,10 +29,21 @@ su - etherpad -s /bin/bash
|
|||||||
#
|
#
|
||||||
git clone --branch master https://github.com/ether/etherpad-lite.git
|
git clone --branch master https://github.com/ether/etherpad-lite.git
|
||||||
|
|
||||||
|
|
||||||
|
# Initial run is needed here!
|
||||||
|
#
|
||||||
|
cd etherpad-lite
|
||||||
|
bin/run.sh
|
||||||
|
|
||||||
# Exit from user etherpad
|
# Exit from user etherpad
|
||||||
#
|
#
|
||||||
exit
|
exit
|
||||||
|
|
||||||
|
|
||||||
|
# ---
|
||||||
|
# Continue as user 'root'
|
||||||
|
# ---
|
||||||
|
|
||||||
# Create systemd service file
|
# Create systemd service file
|
||||||
#
|
#
|
||||||
cat <<EOF > /etc/systemd/system/etherpad.service
|
cat <<EOF > /etc/systemd/system/etherpad.service
|
||||||
@ -175,7 +190,7 @@ cp -a /var/www/etherpad/etherpad-lite/settings.json /var/www/etherpad/etherpad-l
|
|||||||
# change
|
# change
|
||||||
# "abiword": null,
|
# "abiword": null,
|
||||||
# to
|
# to
|
||||||
# "abiword": /usr/bin/abiword,
|
# "abiword": "/usr/bin/abiword",
|
||||||
#
|
#
|
||||||
# 2.) Uncomment section '"users": {' and set password to make admin settings page
|
# 2.) Uncomment section '"users": {' and set password to make admin settings page
|
||||||
# available - https://${FQHN}/admin
|
# available - https://${FQHN}/admin
|
||||||
@ -194,9 +209,10 @@ vim /var/www/etherpad/etherpad-lite/settings.json
|
|||||||
# - font_family
|
# - font_family
|
||||||
# - font_size
|
# - font_size
|
||||||
# - headings2
|
# - headings2
|
||||||
# - pad_title
|
# - padlist2
|
||||||
# - printer
|
# - printer
|
||||||
# - et_title_on_pad
|
# - table_of_contents
|
||||||
|
# - set_title_on_pad
|
||||||
# - subscript_and_superscript
|
# - subscript_and_superscript
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user