mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-09-23 01:10:03 +00:00
Don't require dynamic apps to have service file
This commit is contained in:
parent
3bfc607abc
commit
6620caec0d
|
@ -763,8 +763,9 @@ def init_dynamic_app(app_info):
|
||||||
app_name = app_info["short_name"]
|
app_name = app_info["short_name"]
|
||||||
app_dir = DYNAMIC_APPLICATIONS_FOLDER + "/" + app_name
|
app_dir = DYNAMIC_APPLICATIONS_FOLDER + "/" + app_name
|
||||||
log_message(" Loading " + app_name + "...")
|
log_message(" Loading " + app_name + "...")
|
||||||
# Install Service File
|
# Install Service File (if exists)
|
||||||
os.system("cp -f {} {}".format(app_dir+"/"+app_name+".service", "/etc/systemd/system/"+app_name+".service"))
|
if (os.path.isfile(app_dir+"/"+app_name+".service")):
|
||||||
|
os.system("cp -f {} {}".format(app_dir+"/"+app_name+".service", "/etc/systemd/system/"+app_name+".service"))
|
||||||
# Install App Icon
|
# Install App Icon
|
||||||
os.system("cp -f {} {}".format(app_dir+"/"+app_name+".png", "/var/www/mynode/static/images/app_icons/"+app_name+".png"))
|
os.system("cp -f {} {}".format(app_dir+"/"+app_name+".png", "/var/www/mynode/static/images/app_icons/"+app_name+".png"))
|
||||||
# Install Screenshots
|
# Install Screenshots
|
||||||
|
|
Loading…
Reference in New Issue
Block a user