mirror of
https://github.com/YunoHost-Apps/airsonic_ynh.git
synced 2024-09-03 18:06:14 +02:00
cleaning
This commit is contained in:
parent
a0e8644b6b
commit
4e3c4af97f
3 changed files with 4 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=__APP__ Media Server
|
Description=__APP__: Media Server
|
||||||
After=remote-fs.target network.target
|
After=remote-fs.target network.target
|
||||||
AssertPathExists=__INSTALL_DIR__
|
AssertPathExists=__INSTALL_DIR__
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ admindoc = "https://airsonic.github.io/docs/"
|
||||||
code = "https://github.com/airsonic-advanced/airsonic-advanced"
|
code = "https://github.com/airsonic-advanced/airsonic-advanced"
|
||||||
|
|
||||||
[integration]
|
[integration]
|
||||||
yunohost = ">= 11.1.20"
|
yunohost = ">= 11.2"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
ldap = true
|
ldap = true
|
||||||
|
|
|
@ -32,19 +32,6 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=1
|
||||||
# Create a dedicated NGINX config
|
# Create a dedicated NGINX config
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SPECIFIC SETUP
|
|
||||||
#=================================================
|
|
||||||
# CREATE DATA DIRECTORY
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Creating a data directory..." --weight=1
|
|
||||||
|
|
||||||
mkdir -p $data_dir/{Podcasts,Playlists}
|
|
||||||
|
|
||||||
chmod 764 "$data_dir"
|
|
||||||
chmod -R o-rwx "$data_dir"
|
|
||||||
chown -R $app:www-data "$data_dir"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# YUNOHOST MULTIMEDIA INTEGRATION
|
# YUNOHOST MULTIMEDIA INTEGRATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -84,11 +71,13 @@ chown $app $install_dir/transcode
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="../conf/systemd-sysconfig" --destination="/etc/default/$app"
|
ynh_add_config --template="../conf/systemd-sysconfig" --destination="/etc/default/$app"
|
||||||
|
|
||||||
chmod 600 "/etc/default/$app"
|
chmod 600 "/etc/default/$app"
|
||||||
chown $app:$app "/etc/default/$app"
|
chown $app:$app "/etc/default/$app"
|
||||||
|
|
||||||
# Copy configuration file of airsonic
|
# Copy configuration file of airsonic
|
||||||
ynh_add_config --template="../conf/airsonic.properties" --destination="$install_dir/airsonic.properties"
|
ynh_add_config --template="../conf/airsonic.properties" --destination="$install_dir/airsonic.properties"
|
||||||
|
|
||||||
chmod 600 "$install_dir/airsonic.properties"
|
chmod 600 "$install_dir/airsonic.properties"
|
||||||
chown $app:$app "$install_dir/airsonic.properties"
|
chown $app:$app "$install_dir/airsonic.properties"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue