Skip to content

Commit 5744541

Browse files
committed
Merge branch 'testing' into datadir
2 parents 089f0fc + 165e2a9 commit 5744541

5 files changed

Lines changed: 11 additions & 51 deletions

File tree

scripts/_common.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,3 @@ go_version=1.20
1717
#=================================================
1818
# FUTURE OFFICIAL HELPERS
1919
#=================================================
20-
21-
ynh_go_try_bash_extension() {
22-
if [ -x src/configure ]; then
23-
src/configure && make -C src || {
24-
ynh_print_info --message="Optional bash extension failed to build, but things will still work normally."
25-
}
26-
fi
27-
}

scripts/backup

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,11 @@ ynh_backup --src_path="$install_dir"
2828
ynh_backup --src_path="$data_dir" --is_big
2929

3030
#=================================================
31-
# BACKUP THE NGINX CONFIGURATION
31+
# SYSTEM CONFIGURATION
3232
#=================================================
3333

3434
ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
3535

36-
#=================================================
37-
# BACKUP SYSTEMD
38-
#=================================================
39-
4036
ynh_backup --src_path="/etc/systemd/system/$app.service"
4137
ynh_backup --src_path="/etc/systemd/system/${app}_ldap.service"
4238

scripts/install

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,6 @@ ynh_replace_string --match_string="<div class=\"galene-header\">Galène</div>" -
4444
chmod -R o-rwx "$install_dir"
4545
chown -R $app:www-data "$install_dir"
4646

47-
#=================================================
48-
# NGINX CONFIGURATION
49-
#=================================================
50-
ynh_script_progression --message="Configuring NGINX web server..." --weight=2
51-
52-
# Create a dedicated NGINX config
53-
ynh_add_nginx_config
54-
5547
#=================================================
5648
# SPECIFIC SETUP
5749
#=================================================
@@ -114,23 +106,19 @@ chmod 400 "$data_dir/groups/YunoHost_Users.json"
114106
chown $app:$app "$data_dir/groups/YunoHost_Users.json"
115107

116108
#=================================================
117-
# SETUP SYSTEMD
109+
# SYSTEM CONFIGURATION
118110
#=================================================
119-
ynh_script_progression --message="Configuring a systemd service..." --weight=1
111+
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
120112

121113
public_ip4="$(curl -s ip.yunohost.org)" || true
122114

115+
# Create a dedicated NGINX config
116+
ynh_add_nginx_config
117+
123118
# Create a dedicated systemd config
124119
ynh_add_systemd_config
125120
ynh_add_systemd_config --service=${app}_ldap --template="ldap.service"
126121

127-
#=================================================
128-
# GENERIC FINALIZATION
129-
#=================================================
130-
# INTEGRATE SERVICE IN YUNOHOST
131-
#=================================================
132-
ynh_script_progression --message="Integrating service in YunoHost..." --weight=2
133-
134122
yunohost service add $app --description="Videoconferencing server" --needs_exposed_ports="$port_turn"
135123
yunohost service add ${app}_ldap --description="LDAP integration for the videoconferencing server"
136124

scripts/restore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ ynh_script_progression --message="Restoring the data directory..." --weight=1
2727

2828
ynh_restore_file --origin_path="$data_dir" --not_mandatory
2929

30-
mkdir -p $data_dir/{groups,recordings}
31-
32-
chmod 750 "$data_dir"
33-
chmod -R o-rwx "$data_dir"
3430
chown -R $app:www-data "$data_dir"
3531

3632
#=================================================

scripts/upgrade

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,6 @@ ynh_replace_string --match_string="<div class=\"galene-header\">Galène</div>" -
6060
chmod -R o-rwx "$install_dir"
6161
chown -R $app:www-data "$install_dir"
6262

63-
#=================================================
64-
# NGINX CONFIGURATION
65-
#=================================================
66-
ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=3
67-
68-
# Create a dedicated NGINX config
69-
ynh_add_nginx_config
70-
7163
#=================================================
7264
# SPECIFIC UPGRADE
7365
#=================================================
@@ -133,23 +125,19 @@ chmod 400 "$data_dir/groups/YunoHost_Users.json"
133125
chown $app:$app "$data_dir/groups/YunoHost_Users.json"
134126

135127
#=================================================
136-
# SETUP SYSTEMD
128+
# REAPPLY SYSTEM CONFIGURATIONS
137129
#=================================================
138-
ynh_script_progression --message="Upgrading systemd configuration..." --weight=1
130+
ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1
139131

140132
public_ip4="$(curl -s ip.yunohost.org)" || true
141133

134+
# Create a dedicated NGINX config
135+
ynh_add_nginx_config
136+
142137
# Create a dedicated systemd config
143138
ynh_add_systemd_config
144139
ynh_add_systemd_config --service=${app}_ldap --template="ldap.service"
145140

146-
#=================================================
147-
# GENERIC FINALIZATION
148-
#=================================================
149-
# INTEGRATE SERVICE IN YUNOHOST
150-
#=================================================
151-
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
152-
153141
yunohost service add $app --description="Videoconferencing server" --needs_exposed_ports="$port_turn"
154142
yunohost service add ${app}_ldap --description="LDAP integration for the videoconferencing server"
155143

0 commit comments

Comments
 (0)