Merge pull request #161 from jb-alvarado/master
remove group from service, create plalist folders
This commit is contained in:
commit
eebe27ed1f
@ -7,7 +7,6 @@ ExecStart=/usr/bin/ffpapi -l 127.0.0.1:8000
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
User=ffpu
|
||||
Group=ffpu
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -8,7 +8,6 @@ Restart=always
|
||||
RestartSec=1
|
||||
KillMode=mixed
|
||||
User=ffpu
|
||||
Group=ffpu
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -8,7 +8,6 @@ Restart=always
|
||||
RestartSec=1
|
||||
KillMode=mixed
|
||||
User=ffpu
|
||||
Group=ffpu
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -54,6 +54,10 @@ pub async fn write_playlist(id: i64, json_data: JsonPlaylist) -> Result<String,
|
||||
.join(date.clone())
|
||||
.with_extension("json");
|
||||
|
||||
if let Some(p) = playlist_path.parent() {
|
||||
fs::create_dir_all(p)?;
|
||||
}
|
||||
|
||||
if playlist_path.is_file() {
|
||||
if let Ok(existing_data) = json_reader(&playlist_path) {
|
||||
if json_data == existing_data {
|
||||
|
Loading…
Reference in New Issue
Block a user