-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpost_install
executable file
·15 lines (11 loc) · 998 Bytes
/
post_install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# After installing or updating a plugin package, one needs to restart the daemon with the --reset flag for changes to take effect.
# For the moment aiidalab only restart the daemon without the --reset flag, so we need to do it manually.
verdi daemon restart --reset
# This script is executed after the app installation completes
# triggered by the post install hook implemented in https://github.com/aiidalab/aiidalab/pull/295
# TODO: this script is not yet properly tested. The integration tests are run from the qeapp docker image, this script is executed when the app is installed by `aiidalab install`. Therefore, we need to bring original di test (which removed in https://github.com/aiidalab/aiidalab-qe/pull/449/files#diff-83993fe9ad162677c85ae244400df2469b6d666c2a28d7b8d179785e87beb7f3) back.
echo "Starting installation of QE..."
python -m aiidalab_qe install-qe & disown
echo "Starting installation of pseudo-potentials..."
python -m aiidalab_qe install-pseudos & disown