Add deletion of station schedule info when station is removed
Task scheduler entry for Windows, cron entry for *nix
This commit is contained in:
@ -143,6 +143,7 @@ public class StationSelectionController {
|
|||||||
if (change.wasRemoved()) {
|
if (change.wasRemoved()) {
|
||||||
for (StationSettings removedStation : change.getRemoved()) {
|
for (StationSettings removedStation : change.getRemoved()) {
|
||||||
try {
|
try {
|
||||||
|
StationSettings.deleteStationData(removedStation.getName());
|
||||||
removedStation.deleteDir();
|
removedStation.deleteDir();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
logger.log(Level.SEVERE, "Exception when removing station directory", e);
|
logger.log(Level.SEVERE, "Exception when removing station directory", e);
|
||||||
|
Reference in New Issue
Block a user