Compare commits
No commits in common. "9062d788aba8228081f5497faac6536405716bdf" and "254916806370e7e55b8b5523d65aedafb7dab0cf" have entirely different histories.
9062d788ab
...
2549168063
@ -173,12 +173,6 @@ chown www-data:www-data /var/www
|
|||||||
# - Get cryptpad
|
# - Get cryptpad
|
||||||
# -
|
# -
|
||||||
su www-data -s /bin/bash -c "git clone https://github.com/xwiki-labs/cryptpad /var/www/cryptpad"
|
su www-data -s /bin/bash -c "git clone https://github.com/xwiki-labs/cryptpad /var/www/cryptpad"
|
||||||
su www-data -s /bin/bash -c "git clone https://github.com/cryptpad/cryptpad.git /var/www/cryptpad"
|
|
||||||
|
|
||||||
# Switch to the latest published tag
|
|
||||||
#
|
|
||||||
#su www-data -s /bin/bash -c "git checkout $(git tag -l | grep -v 'v1.*$' | sort -V | tail -n 1)"
|
|
||||||
|
|
||||||
|
|
||||||
cd cryptpad
|
cd cryptpad
|
||||||
|
|
||||||
|
@ -1,48 +1,28 @@
|
|||||||
# ----------
|
|
||||||
# - Install nodejs - (we use the official NodeJs LTS release)
|
|
||||||
# ----------
|
|
||||||
|
|
||||||
# Install Prerequisites
|
|
||||||
#
|
apt update && apt full-upgrade
|
||||||
|
|
||||||
apt install curl \
|
apt install curl \
|
||||||
ca-certificates \
|
gpg \
|
||||||
curl \
|
gnupg2 \
|
||||||
gnupg \
|
software-properties-common \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
lsb-release
|
lsb-release ca-certificates
|
||||||
|
|
||||||
|
|
||||||
# Download and import the Nodesource GPG key
|
|
||||||
#
|
|
||||||
mkdir -p /etc/apt/keyrings
|
mkdir -p /etc/apt/keyrings
|
||||||
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
|
|
||||||
# Create debian repository
|
|
||||||
|
# NODE_MAJOR=16
|
||||||
|
# NODE_MAJOR=18
|
||||||
|
# NODE_MAJOR=20
|
||||||
#
|
#
|
||||||
NODE_MAJOR=20
|
NODE_MAJOR=21
|
||||||
|
|
||||||
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
|
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
|
||||||
|
|
||||||
# Run update
|
|
||||||
#
|
|
||||||
apt update
|
apt update
|
||||||
|
|
||||||
# Install nodejs
|
|
||||||
#
|
|
||||||
apt install nodejs
|
apt install nodejs
|
||||||
|
|
||||||
node -v
|
node -v
|
||||||
npm -v
|
npm -v
|
||||||
|
|
||||||
|
|
||||||
# ----------
|
|
||||||
# Uninstall nodejs Ubuntu & Debian packages
|
|
||||||
# ----------
|
|
||||||
|
|
||||||
# To completely remove Node.js installed from the deb.nodesource.com package methods above:
|
|
||||||
#
|
|
||||||
apt-get purge nodejs
|
|
||||||
rm -r /etc/apt/sources.list.d/nodesource.list
|
|
||||||
rm -r /etc/apt/keyrings/nodesource.gpg
|
|
||||||
|
|
||||||
apt update
|
|
||||||
|
Loading…
Reference in New Issue
Block a user