stefanpejcic / OpenPanel

A highly customizable web hosting control panel built with Docker 🐳
https://openpanel.com
216 stars 33 forks source link

TODO FOR NEW IMAGES #99

Closed stefanpejcic closed 5 months ago

stefanpejcic commented 7 months ago

OpenPanel version(s) affected

0.1.7

Description

cron da se instalira i start kad se doda job!

kad se obrise zadnji cron, onda cron service se stopira i brise!


mysql da se start kad se doda baza, user, ili ulaz an phpmyadmin. u gui da piše 0 baza ako je servis off! cron u poyadini da gasi ako nema baza/usera!

pm2, node/python da se dodaju kad i aplikacija!

Check if there are any sites running with pm2

pm2_list_output=$(pm2 list)

if [[ $pm2_list_output =~ "│.online.│" ]]; then

If there are active processes, run pm2 resurrect

echo "There are active NodeJS/Python Applications, starting them.."
pm2 resurrect

else

If there are no active processes, print a message

echo "No active NodeJS/Python Applications to to run. Skipping 'pm2 resurrect'."

fi

nginx da startuje kad doda domen!!!!

php da se start kada doda domen tek!!!

SSH:

service status, ako unknown, onda install:

apt-get install openssh-server -y && echo "export VISIBLE=now" >> /etc/profile

########## SSH ########## ENV NOTVISIBLE "in users profile" RUN echo "export VISIBLE=now" >> /etc/profile

ako je off, onda samo on.


webterminal:

if command, then start, if unkonw, then install and start.

install ttyd and screen


phpmyadmin:

if command, then start, if unkonw, then install and start.

install phpmyadmin, and screen

How to reproduce

r

Possible Solution

No response

Additional Context

No response

stefanpejcic commented 6 months ago

Need further testing