Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Force update && upgrade 4 multiple sites cron

Started by Muut Archive 10 years ago · 2 replies · 354 views
10 years ago

Hello,
i have a simple bash to update/upgrade 4 all sites:

for i in find . -type d
do
cd ~/domains/$i/public_html && bin/gpm update && bin/gpm selfupgrade
done

but every time I have to confirm "y" to continue. Is there a way to force update and upgrade grav without confirming to continue processes

thx in advance

10 years ago

You should run selfupgrade before update because sometimes the new plugins will require the new version of Grav in order to install.

According to the source code (which you should also see if you type bin/gpm help selfupgrade), there appears to be an --all-yes option that would do what you're looking for.

10 years ago

fantastic, works like charm. thank you very much @Perlkönig

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1357 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2954 9 years ago
Archive · by Muut Archive, 9 years ago
3 1120 9 years ago