File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -211,14 +211,14 @@ Brew can be installed using Codify:
211211 await $ . spawn ( 'apt-get update' , { requiresRoot : true } ) ;
212212 const { status, data } = await $ . spawnSafe ( `apt-get -y install ${ packageName } ` , {
213213 requiresRoot : true ,
214- env : { DEBIAN_FRONTEND : 'noninteractive' }
214+ env : { DEBIAN_FRONTEND : 'noninteractive' , NEEDRESTART_MODE : 'a' }
215215 } ) ;
216216
217217 if ( status === SpawnStatus . ERROR && data . includes ( 'E: dpkg was interrupted, you must manually run \'sudo dpkg --configure -a\' to correct the problem.' ) ) {
218218 await $ . spawn ( 'dpkg --configure -a' , { requiresRoot : true } ) ;
219219 await $ . spawn ( `apt-get -y install ${ packageName } ` , {
220220 requiresRoot : true ,
221- env : { DEBIAN_FRONTEND : 'noninteractive' }
221+ env : { DEBIAN_FRONTEND : 'noninteractive' , NEEDRESTART_MODE : 'a' }
222222 } ) ;
223223
224224 return ;
@@ -267,7 +267,7 @@ Brew can be installed using Codify:
267267 if ( isAptInstalled . status === SpawnStatus . SUCCESS ) {
268268 const { status } = await $ . spawnSafe ( `apt-get autoremove -y --purge ${ packageName } ` , {
269269 requiresRoot : true ,
270- env : { DEBIAN_FRONTEND : 'noninteractive' }
270+ env : { DEBIAN_FRONTEND : 'noninteractive' , NEEDRESTART_MODE : 'a' }
271271 } ) ;
272272 return status === SpawnStatus . SUCCESS ;
273273 }
You can’t perform that action at this time.
0 commit comments