mirror of
https://github.com/SuperBFG7/ympd
synced 2025-02-18 20:10:11 +00:00
Removed obsolet options
This commit is contained in:
parent
290d591c39
commit
325094f6e7
@ -5,5 +5,3 @@ MPD_PASSWORD=
|
||||
WEB_PORT=80
|
||||
MYMPD_USER=nobody
|
||||
COVERIMAGE=--coverimage folder.jpg
|
||||
#DIGEST=--digest /path/to/htdigest
|
||||
#LOCALPORT=--localport 80
|
||||
|
@ -8,11 +8,9 @@ Environment=MPD_PORT=6600
|
||||
Environment=MPD_PASSWORD=
|
||||
Environment=WEB_PORT=80
|
||||
Environment=MYMPD_USER=nobody
|
||||
Environment=DIGEST=
|
||||
Environment=LOCALPORT=
|
||||
Environment=COVERIMAGE=--coverimage folder.jpg
|
||||
EnvironmentFile=/etc/default/mympd
|
||||
ExecStart=/usr/bin/mympd --user $MYMPD_USER --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT $COVERIMAGE $DIGEST $LOCALPORT
|
||||
ExecStart=/usr/bin/mympd --user $MYMPD_USER --webport $WEB_PORT --host $MPD_HOST --port $MPD_PORT $COVERIMAGE
|
||||
Type=simple
|
||||
|
||||
[Install]
|
||||
|
@ -79,7 +79,6 @@ static void ev_handler(struct mg_connection *nc, int ev, void *ev_data) {
|
||||
#endif
|
||||
if (mg_vcmp(&hm->uri, "/api") == 0) {
|
||||
handle_api(nc, hm);
|
||||
|
||||
}
|
||||
else {
|
||||
mg_serve_http(nc, hm, s_http_server_opts);
|
||||
@ -131,7 +130,7 @@ int main(int argc, char **argv)
|
||||
{0, 0, 0, 0 }
|
||||
};
|
||||
|
||||
while((n = getopt_long(argc, argv, "D:h:p:l:w:u:d:vm:s:i:",
|
||||
while((n = getopt_long(argc, argv, "D:h:p:w:u:vm:s:i:",
|
||||
long_options, &option_index)) != -1) {
|
||||
switch (n) {
|
||||
case 'D':
|
||||
|
Loading…
x
Reference in New Issue
Block a user