File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
Universal/PyInfra/ArchServer Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -217,22 +217,21 @@ def system_services():
217
217
)
218
218
219
219
@deploy ("Post-deployment Tasks" )
220
- def session_cleanup ():
220
+ def deployment_cleanup ():
221
221
server .shell (
222
222
name = "Removing sudo bypass" ,
223
223
commands = [f"sed -i '/NOPASSWD/d' /etc/sudoers" ],
224
224
_sudo = True
225
225
)
226
226
227
- server .shell (
228
- name = "Removing `paru-src` leftovers" ,
229
- commands = [f"rm /home/{ host .get_fact (User )} /paru -r" ],
230
- _sudo = True
231
- )
232
-
233
227
server .shell (
234
228
name = "Adding hostname & IP to login screen" ,
235
- commands = ["echo -e 'Hostname: \\ n \n IPv4: \4 \n ' >> /etc/issue" ], # not tested be careful, it should work
229
+ commands = [
230
+ "echo '===SERVER INFORMATION===' >> /etc/issue" ,
231
+ 'printf "Hostname: \\ cdx" >> /etc/issue' ,
232
+ "echo -e '\n IPv4: \\ 4\n ' >> /etc/issue" ,
233
+ "sed -i 's/cdx/n/' /etc/issue"
234
+ ],
236
235
_sudo = True
237
236
)
238
237
@@ -247,8 +246,7 @@ def main():
247
246
user_configuration ()
248
247
system_services ()
249
248
service_configuration ()
250
- edit_files ()
251
- session_cleanup ()
249
+ deployment_cleanup ()
252
250
253
251
#
254
252
## Init Point
You can’t perform that action at this time.
0 commit comments