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:
parent
c48b6aeeb4
commit
c2ba72617b
@ -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'")
|
||||
|
Loading…
Reference in New Issue
Block a user