<commit_before>#!/bin/bash
APP_NAME=self-hosting
SOURCE_DIR=/usr/local/cozy/apps/${APP_NAME}/to-install

cozy-monitor install ${APP_NAME} -r https://github.com/cozy/cozy-self-hosting.git

cp ${SOURCE_DIR}/debian-reconfigure-cozy-domain.sh /usr/local/sbin/debian-reconfigure-cozy-domain.sh
cp ${SOURCE_DIR}/debian-halt.sh /usr/local/sbin/debian-halt.sh
cp ${SOURCE_DIR}/debian-reboot.sh /usr/local/sbin/debian-reboot.sh
cp ${SOURCE_DIR}/sudoers.d_cozy-self-hosting /etc/sudoers.d/cozy-self-hosting
cp ${SOURCE_DIR}/self-hosting.json /etc/cozy/self-hosting.json

chown root:root /etc/sudoers.d/cozy-self-hosting
chmod 440 /etc/sudoers.d/cozy-self-hosting

chown root:root /etc/cozy/self-hosting.json
chmod 644 /etc/cozy/self-hosting.json<commit_msg>adding execution rights<commit_after>#!/bin/bash
APP_NAME=self-hosting
SOURCE_DIR=/usr/local/cozy/apps/${APP_NAME}/to-install

cozy-monitor install ${APP_NAME} -r https://github.com/cozy/cozy-self-hosting.git

cp ${SOURCE_DIR}/debian-reconfigure-cozy-domain.sh /usr/local/sbin/debian-reconfigure-cozy-domain.sh
cp ${SOURCE_DIR}/debian-halt.sh /usr/local/sbin/debian-halt.sh
cp ${SOURCE_DIR}/debian-reboot.sh /usr/local/sbin/debian-reboot.sh
cp ${SOURCE_DIR}/sudoers.d_cozy-self-hosting /etc/sudoers.d/cozy-self-hosting
cp ${SOURCE_DIR}/self-hosting.json /etc/cozy/self-hosting.json

chown root:root /etc/sudoers.d/cozy-self-hosting
chmod 440 /etc/sudoers.d/cozy-self-hosting

chown root:root /etc/cozy/self-hosting.json
chmod 644 /etc/cozy/self-hosting.json

chmod +x /usr/local/sbin/debian-reconfigure-cozy-domain.sh
chmod +x /usr/local/sbin/debian-halt.sh
chmod +x /usr/local/sbin/debian-reboot.sh
{'fraction_non_alphanumeric': 0.16221142162818955, 'fraction_numerical': 0.007290400972053463, 'mean_word_length': 4.65979381443299, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3936364', 'n_tokens_mistral': 706, 'n_tokens_neox': 668, 'n_words': 80}