-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
506a50f
commit c8325e8
Showing
4 changed files
with
14 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,20 +28,27 @@ sudo pip3 install "$SCRIPT_DIR"/PyYAML-6.0.2-cp311-cp311-linux_armv7l.whl | |
# 4. update diskcache.sh | ||
mv "$SCRIPT_DIR"/create_diskcache.sh /usr/local/bin/create_diskcache.sh | ||
|
||
# 5. replace old calibrations with new yaml files. This doesn't delete old calibrations | ||
python "$SCRIPT_DIR"/cal_convert.py "$STORAGE_DIR"/od_calibrations/cache.db | ||
python "$SCRIPT_DIR"/cal_convert.py "$STORAGE_DIR"/pump_calibrations/cache.db | ||
|
||
# if leader | ||
if [ "$HOSTNAME" != "$LEADER_HOSTNAME" ]; then | ||
|
||
# 5. remove calibrations dataset file | ||
# 6. remove calibrations dataset file | ||
rm -f /home/pioreactor/.pioreactor/exportable_datasets/*calibrations.yaml | ||
|
||
|
||
# 6. fix any bad pioreactor start up systemd services | ||
# 7. fix any bad pioreactor start up systemd services | ||
rm -f /usr/lib/systemd/system/[email protected] | ||
cp "$SCRIPT_DIR"/[email protected] /etc/systemd/system/ | ||
fi | ||
echo "application/yaml yaml yml" | sudo tee -a /etc/mime.types | ||
|
||
# 8. add new config entries | ||
crudini --set /home/pioreactor/.pioreactor/config.ini storage temporary_cache /tmp/pioreactor_cache/local_intermittent_pioreactor_metadata.sqlite \ | ||
--set /home/pioreactor/.pioreactor/config.ini storage persistent_cache /home/pioreactor/.pioreactor/storage/local_persistent_pioreactor_metadata.sqlite | ||
|
||
# 7. replace old calibrations with new yaml files. This doesn't delete old calibrations | ||
python "$SCRIPT_DIR"/cal_convert.py "$STORAGE_DIR"/od_calibrations/cache.db | ||
python "$SCRIPT_DIR"/cal_convert.py "$STORAGE_DIR"/pump_calibrations/cache.db | ||
sudo -u pioreactor pios sync-configs --shared || : | ||
|
||
|
||
fi |