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