|
|
@ -786,16 +786,14 @@ Set_Bt_Panel(){ |
|
|
|
fi |
|
|
|
sleep 1 |
|
|
|
admin_auth="/www/server/panel/data/admin_path.pl" |
|
|
|
if [ "${SAFE_PATH}" ];then |
|
|
|
auth_path=$SAFE_PATH |
|
|
|
echo "/${auth_path}" > ${admin_auth} |
|
|
|
fi |
|
|
|
if [ ! -f ${admin_auth} ];then |
|
|
|
auth_path=$(cat /dev/urandom | head -n 16 | md5sum | head -c 8) |
|
|
|
echo "/${auth_path}" > ${admin_auth} |
|
|
|
fi |
|
|
|
auth_path=$(cat /dev/urandom | head -n 16 | md5sum | head -c 8) |
|
|
|
echo "/${auth_path}" > ${admin_auth} |
|
|
|
if [ "${SAFE_PATH}" ];then |
|
|
|
auth_path=$SAFE_PATH |
|
|
|
echo "/${auth_path}" > ${admin_auth} |
|
|
|
fi |
|
|
|
chmod -R 700 $pyenv_path/pyenv/bin |
|
|
|
btpip install docxtpl==0.16.7 |
|
|
|
/www/server/panel/pyenv/bin/pip3 install pymongo |
|
|
@ -1059,3 +1057,4 @@ endTime=`date +%s` |
|
|
|
echo -e "Time consumed:\033[32m $outTime \033[0mMinute!" |
|
|
|
|
|
|
|
|
|
|
|
|