mirror of
https://github.com/YunoHost-Apps/mopidy_ynh.git
synced 2024-09-03 19:46:21 +02:00
Update install
This commit is contained in:
parent
739bb72044
commit
ca116afabe
1 changed files with 2 additions and 22 deletions
|
@ -112,8 +112,8 @@ chown -R $app: "$work_dir"
|
|||
ynh_script_progression --message="Configuring a systemd service..."
|
||||
|
||||
# Create a dedicated systemd config
|
||||
#start_file="$final_path/env/bin/$app"
|
||||
ynh_add_systemd_config #--others_var="conf_file start_file" substitute __CONF_FILE__ by $conf_file
|
||||
|
||||
ynh_add_systemd_config
|
||||
|
||||
#=================================================
|
||||
# MODIFY A CONFIG FILE
|
||||
|
@ -125,13 +125,6 @@ data_dir=$work_dir/data
|
|||
|
||||
ynh_add_config --template="../conf/app.conf" --destination="$conf_file"
|
||||
|
||||
#cp ../conf/app.conf "$conf_file"
|
||||
|
||||
#ynh_replace_string --match_string="__PORT__" --replace_string=$port --target_file="$conf_file"
|
||||
#ynh_replace_string --match_string="__MEDIADIR__" --replace_string=$media_dir --target_file="$conf_file"
|
||||
#ynh_replace_string --match_string="__CACHE_DIR__" --replace_string=$work_dir/cache --target_file="$conf_file"
|
||||
#ynh_replace_string --match_string="__DATA_DIR__" --replace_string=$work_dir/data --target_file="$conf_file"
|
||||
|
||||
#=================================================
|
||||
# STORE THE CONFIG FILE CHECKSUM
|
||||
#=================================================
|
||||
|
@ -147,10 +140,6 @@ chmod 750 "$final_path"
|
|||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
# user mopidy needs permission to mkdir on final_path
|
||||
#chown -R root: $final_path
|
||||
#chown $app: $final_path
|
||||
|
||||
#=================================================
|
||||
# INTEGRATE SERVICE IN YUNOHOST
|
||||
#=================================================
|
||||
|
@ -178,10 +167,6 @@ fi
|
|||
|
||||
ynh_permission_url --permission="main" --url="$domain/mopidy" --add_url="$domain/mopidy/ws" "$domain/musicbox_webclient" "$domain/local"
|
||||
|
||||
#ynh_permission_url --permission="main" --add_url="$domain/mopidy/ws"
|
||||
#ynh_permission_url --permission="main" --add_url="$domain/musicbox_webclient"
|
||||
#ynh_permission_url --permission="main" --add_url="$domain/local"
|
||||
|
||||
#=================================================
|
||||
# RELOAD NGINX
|
||||
#=================================================
|
||||
|
@ -196,11 +181,6 @@ ynh_script_progression --message="Provide additional shell command..."
|
|||
|
||||
ynh_add_config --template="../sources/extra_files/mopidyctl" --destination="$cmd_file"
|
||||
|
||||
#cp -a ../sources/extra_files/mopidyctl "$cmd_file"
|
||||
#ynh_replace_string --match_string="__APP__" --replace_string=$app --target_file="$cmd_file"
|
||||
#ynh_replace_string --match_string="__FINAL_PATH__" --replace_string=$final_path --target_file="$cmd_file"
|
||||
#ynh_replace_string --match_string="__CONF_FILE__" --replace_string=$conf_file --target_file="$cmd_file"
|
||||
|
||||
chmod +x "$cmd_file"
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue