install
This commit is contained in:
parent
99b7fd38de
commit
22bf21a6d7
|
@ -14,8 +14,7 @@ if [ "$EUID" -eq 0 ]
|
|||
else echo -e "${c_yellow}OK $USER, let's go!$c_";
|
||||
fi
|
||||
|
||||
[[ -d ~/.ipfs-old/ ]] && echo "Backup exist, please remove backup before execute this script" && exit 1
|
||||
[[ -d ~/.ipfs/ ]] && rm -rf ~/.ipfs-old && mv ~/.ipfs/ ~/.ipfs-old
|
||||
[[ -d ~/.ipfs ]] && echo "IPFS install exist, please remove backup before execute this script" && exit 1
|
||||
|
||||
ipfs_install() {
|
||||
echo -e "${c_yellow}Onboarding IPFS...$c_"
|
||||
|
@ -35,7 +34,7 @@ ipfs_install() {
|
|||
|
||||
echo "INSTALL latest ipfs"
|
||||
sudo ipfs-update install latest || err+="Install IPFS"
|
||||
fi
|
||||
|
||||
|
||||
if [[ ! -f /etc/systemd/system/ipfs.service ]]; then
|
||||
echo "CREATE SYSTEMD ipfs SERVICE"
|
||||
|
@ -46,7 +45,7 @@ ipfs_install() {
|
|||
[[ -f /etc/systemd/system/ipfs.service ]] && sudo rm /etc/systemd/system/ipfs.service
|
||||
sudo cp -f $templates/ipfs.service /etc/systemd/system/
|
||||
sudo sed -i "s/_USER/$USER/g" /etc/systemd/system/ipfs.service
|
||||
|
||||
fi
|
||||
sudo systemctl daemon-reload || err+="Restart IPFS"
|
||||
sudo systemctl enable ipfs || err+="Enable IPFS daemon"
|
||||
|
||||
|
|
|
@ -51,6 +51,10 @@ $MY_PATH/.install/export_colors.sh
|
|||
|
||||
# --------------------------------------------
|
||||
|
||||
# Install IPFS
|
||||
ipfs() {
|
||||
source .install/ipfs.sh
|
||||
}
|
||||
# Install ScuttleButt
|
||||
source .install/scuttlebutt.sh
|
||||
|
||||
|
@ -60,7 +64,7 @@ iptubes() {
|
|||
}
|
||||
|
||||
# Install Torrengo
|
||||
source iptubes/install.sh torrengo
|
||||
# source iptubes/install.sh torrengo
|
||||
|
||||
# --------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue