mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update INSTALL.sh
This commit is contained in:
parent
ec72ee4762
commit
00f25264b3
@ -770,6 +770,7 @@ else
|
|||||||
|
|
||||||
### to be removed in 0.1.8
|
### to be removed in 0.1.8
|
||||||
daemon_json_content='{
|
daemon_json_content='{
|
||||||
|
"experimental": true,
|
||||||
"storage-driver": "devicemapper",
|
"storage-driver": "devicemapper",
|
||||||
"log-driver": "local",
|
"log-driver": "local",
|
||||||
"log-opts": {
|
"log-opts": {
|
||||||
@ -836,12 +837,18 @@ setup_openpanel() {
|
|||||||
echo "Installing PIP requirements for User panel.."
|
echo "Installing PIP requirements for User panel.."
|
||||||
|
|
||||||
# FIX FOR: https://peps.python.org/pep-0668/
|
# FIX FOR: https://peps.python.org/pep-0668/
|
||||||
if [[ ($current_python_version == "311" || $current_python_version == "312") ]]; then
|
ubuntu_version=$(lsb_release -r -s)
|
||||||
|
# Check if version is 22
|
||||||
|
if [[ "$ubuntu_version" == "22."* ]]; then
|
||||||
|
debug_log "Installing PIP requirements for OpenPanel without break-system-packages..."
|
||||||
|
debug_log pip install -r requirements.txt
|
||||||
|
# Check if version is 24
|
||||||
|
elif [[ "$ubuntu_version" == "24."* ]]; then
|
||||||
debug_log "Installing PIP requirements for OpenPanel with break-system-packages..."
|
debug_log "Installing PIP requirements for OpenPanel with break-system-packages..."
|
||||||
debug_log pip install -r requirements.txt --break-system-packages
|
debug_log pip install -r requirements.txt --break-system-packages
|
||||||
else
|
else
|
||||||
debug_log "Installing PIP requirements for OpenPanel without break-system-packages..."
|
echo "Unsupported Ubuntu version: $ubuntu_version"
|
||||||
debug_log pip install -r requirements.txt
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -881,17 +888,28 @@ setup_openadmin() {
|
|||||||
# Fix for: ModuleNotFoundError: No module named 'pyarmor_runtime_000000'
|
# Fix for: ModuleNotFoundError: No module named 'pyarmor_runtime_000000'
|
||||||
wget -O ${OPENPADMIN_DIR}service/service.config.py https://gist.githubusercontent.com/stefanpejcic/37805c6781dc3beb1730fec82ee5ae34/raw/d7e8a6c1608c265aed89e97dcecea518b222ac86/service.config.py > /dev/null 2>&1
|
wget -O ${OPENPADMIN_DIR}service/service.config.py https://gist.githubusercontent.com/stefanpejcic/37805c6781dc3beb1730fec82ee5ae34/raw/d7e8a6c1608c265aed89e97dcecea518b222ac86/service.config.py > /dev/null 2>&1
|
||||||
|
|
||||||
|
|
||||||
echo "Installing PIP requirements for Admin panel.."
|
echo "Installing PIP requirements for Admin panel.."
|
||||||
|
|
||||||
# FIX FOR: https://peps.python.org/pep-0668/
|
# FIX FOR: https://peps.python.org/pep-0668/
|
||||||
if [[ ($current_python_version == "311" || $current_python_version == "312") ]]; then
|
ubuntu_version=$(lsb_release -r -s)
|
||||||
|
# Check if version is 22
|
||||||
|
if [[ "$ubuntu_version" == "22."* ]]; then
|
||||||
|
debug_log "Installing PIP requirements for OpenAdmin without break-system-packages..."
|
||||||
|
debug_log pip install -r requirements.txt
|
||||||
|
# Check if version is 24
|
||||||
|
elif [[ "$ubuntu_version" == "24."* ]]; then
|
||||||
debug_log "Installing PIP requirements for OpenAdmin with break-system-packages..."
|
debug_log "Installing PIP requirements for OpenAdmin with break-system-packages..."
|
||||||
debug_log pip install -r requirements.txt --break-system-packages
|
debug_log pip install -r requirements.txt --break-system-packages
|
||||||
else
|
else
|
||||||
debug_log "Installing PIP requirements for OpenAdmin without break-system-packages..."
|
echo "Unsupported Ubuntu version: $ubuntu_version"
|
||||||
debug_log pip install -r requirements.txt
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo "Creating Admin user.."
|
echo "Creating Admin user.."
|
||||||
|
|
||||||
touch ${OPENPADMIN_DIR}users.db
|
touch ${OPENPADMIN_DIR}users.db
|
||||||
|
Loading…
Reference in New Issue
Block a user