Merge pull request #3850 from rootzoll/3845virtualenv

#3845 fix virtualenv
This commit is contained in:
/rootzoll 2023-05-19 00:43:51 +02:00 committed by GitHub
commit e1001cc829
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 0 deletions

View file

@ -588,6 +588,11 @@ if [ "$1" = "sync" ] || [ "$1" = "repo" ]; then
# do install like this
sudo -u lnbits poetry install
# make sure default virtaulenv is used
sudo apt-get remove -y python3-virtualenv 2>/dev/null
sudo pip uninstall -y virtualenv 2>/dev/null
sudo apt-get install -y python3-virtualenv
# restart lnbits service
sudo systemctl restart lnbits
echo "# server is restarting ... maybe takes some seconds until available"
@ -642,6 +647,11 @@ if [ "$1" = "install" ]; then
# do install like this
sudo -u lnbits poetry install
# make sure default virtaulenv is used
sudo apt-get remove -y python3-virtualenv 2>/dev/null
sudo pip uninstall -y virtualenv 2>/dev/null
sudo apt-get install -y python3-virtualenv
exit 0
fi

View file

@ -45,6 +45,11 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
"${PGPsigner}" "${PGPpubkeyLink}" "${PGPpubkeyFingerprint}" || exit 1
sudo -u bitcoin poetry install
# make sure default virtaulenv is used
sudo apt-get remove -y python3-virtualenv 2>/dev/null
sudo pip uninstall -y virtualenv 2>/dev/null
sudo apt-get install -y python3-virtualenv
# setting value in raspi blitz config
/home/admin/config.scripts/blitz.conf.sh set suez "on"
@ -86,6 +91,12 @@ if [ "$1" = "update" ]; then
"${PGPsigner}" "${PGPpubkeyLink}" "${PGPpubkeyFingerprint}" || exit 1
sudo -u bitcoin poetry install
echo "# Updated to the latest in https://github.com/prusnak/suez/commits/master"
# make sure default virtaulenv is used
sudo apt-get remove -y python3-virtualenv 2>/dev/null
sudo pip uninstall -y virtualenv 2>/dev/null
sudo apt-get install -y python3-virtualenv
exit 0
fi

View file

@ -60,6 +60,11 @@ function install() {
else
echo "# The ${plugin} plugin is already loaded"
fi
# make sure default virtaulenv is used
sudo apt-get remove -y python3-virtualenv 2>/dev/null
sudo pip uninstall -y virtualenv 2>/dev/null
sudo apt-get install -y python3-virtualenv
}
if [ "$1" = on ]; then
@ -153,6 +158,7 @@ then
sudo systemctl start ${netprefix}lightningd
echo "# Started the ${netprefix}lightningd.service"
fi
fi
elif

View file

@ -68,6 +68,12 @@ function buildAndInstallCLbinaries() {
sudo -u bitcoin git reset --hard
echo "- Install to /usr/local/bin/"
sudo make install || exit 1
# make sure default virtaulenv is used
sudo apt-get remove -y python3-virtualenv 2>/dev/null
sudo pip uninstall -y virtualenv 2>/dev/null
sudo apt-get install -y python3-virtualenv
}
echo "# Running: 'cl.install.sh $*'"
@ -234,6 +240,7 @@ if [ "$1" = on ] || [ "$1" = update ] || [ "$1" = testPR ]; then
echo "# Building from source Core Lightning $currentCLversion"
buildAndInstallCLbinaries
fi
##########