1
0
mirror of https://github.com/rd235/cado synced 2024-12-27 06:24:11 +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() endif()
endforeach(file) endforeach(file)
message(STATUS "Removing user: 'cado'") message(STATUS "Removing user: '_cado'")
execute_process( execute_process(
COMMAND bash "-c" "userdel cado" COMMAND bash "-c" "userdel _cado"
OUTPUT_VARIABLE remove_user OUTPUT_VARIABLE remove_user
) )
if(${remove_user}) if(${remove_user})
message(FATAL_ERROR "Failed to remove user: 'cado'.") message(FATAL_ERROR "Failed to remove user: '_cado'.")
endif() endif()
message(STATUS "Removing folder: '/usr/local/var/spool/cado'") message(STATUS "Removing folder: '/usr/local/var/spool/cado'")