1
0
mirror of https://github.com/rd235/cado synced 2024-12-26 14:03:07 +01:00

[Cmake] Uninstall mimick

As for the PostInstall script, the Uninstall script must be
adapted to the new username (_cado)
This commit is contained in:
Davide Berardi 2020-01-31 18:08:07 +01:00
parent c48b6aeeb4
commit c2ba72617b

View File

@ -22,13 +22,13 @@ foreach(file ${files})
endif()
endforeach(file)
message(STATUS "Removing user: 'cado'")
message(STATUS "Removing user: '_cado'")
execute_process(
COMMAND bash "-c" "userdel cado"
COMMAND bash "-c" "userdel _cado"
OUTPUT_VARIABLE remove_user
)
if(${remove_user})
message(FATAL_ERROR "Failed to remove user: 'cado'.")
message(FATAL_ERROR "Failed to remove user: '_cado'.")
endif()
message(STATUS "Removing folder: '/usr/local/var/spool/cado'")