changes
This commit is contained in:
@@ -9,6 +9,7 @@ SERVICE_FILE="$HOME/.config/systemd/user/$SERVICE_NAME.service"
|
||||
CARGO_BIN="$(which cargo)"
|
||||
|
||||
if [ -d $INSTALL_DIR ]; then
|
||||
echo "Sentryx already exists, creating a backup then updating it, NOTE: you will need to transfer configs manually"
|
||||
mv $INSTALL_DIR $INSTALL_DIR"-backup"
|
||||
fi
|
||||
|
||||
|
||||
@@ -72,6 +72,7 @@ async fn get_apps(query: web::Query<Auth>) -> Result<impl Responder> {
|
||||
Ok(units) => Ok(web::Json(
|
||||
units
|
||||
.iter()
|
||||
.filter(|i| i.ends_with(".service"))
|
||||
.map(|v| match systemctl.status(v) {
|
||||
Ok(unit) => {
|
||||
let a = service::parse_service(unit);
|
||||
|
||||
Reference in New Issue
Block a user