Download scripts/activate_ditto_verifier_worker.py from psiloceyeben/oracle7-chameleon: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/psiloceyeben/oracle7-chameleon/resolve/main/scripts/activate_ditto_verifier_worker.py
- Command line
-
hf download hf://psiloceyeben/oracle7-chameleon/scripts/activate_ditto_verifier_worker.py
-
curl -L -o activate_ditto_verifier_worker.py https://huggingface.co/psiloceyeben/oracle7-chameleon/resolve/main/scripts/activate_ditto_verifier_worker.py
317 Bytes
| from pathlib import Path | |
| import subprocess | |
| p = Path('/etc/ditto-verifier.env') | |
| s = p.read_text() | |
| assert 'CHAMELEON_VERIFICATION_ENABLED=0' in s | |
| p.write_text(s.replace('CHAMELEON_VERIFICATION_ENABLED=0','CHAMELEON_VERIFICATION_ENABLED=1')) | |
| subprocess.run(['systemctl','restart','chameleon-verifier-ditto'],check=True) | |